Skip to content

Commit 02fbd14

Browse files
committed
Fix AVMPort compiler warnings
Recent changes introduced a spew of compiler warnings: https://github.com/atomvm/AtomVM/pull/1351/files Signed-off-by: Peter M <petermm@gmail.com>
1 parent 11b9c1b commit 02fbd14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/exavmlib/lib/AVMPort.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
defmodule AVMPort do
2323
# This avoids crashing the compiler at build time
2424
@compile {:autoload, false}
25+
# This avoids compiler warnings
26+
@compile {:no_warn_undefined, [:port]}
2527
@moduledoc """
2628
This module provides an interface to communicate with AtomVM port processes.
2729
The functionality of AVMPort.call is identical to the eavmlib :port.call/2 and

0 commit comments

Comments
 (0)