Skip to content

Commit

Permalink
Fix AVMPort compiler warnings
Browse files Browse the repository at this point in the history
Recent changes introduced a spew of compiler warnings: https://github.com/atomvm/AtomVM/pull/1351/files

Signed-off-by: Peter M <[email protected]>
  • Loading branch information
petermm committed Oct 23, 2024
1 parent 24084c5 commit 6f9616c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/exavmlib/lib/AVMPort.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
defmodule AVMPort do
# This avoids crashing the compiler at build time
@compile {:autoload, false}
# This avoids compiler warnings
@compile {:no_warn_undefined, [:port]}
@moduledoc """
This module provides an interface to communicate with AtomVM port processes.
The functionality of AVMPort.call is identical to the eavmlib :port.call/2 and
Expand Down

0 comments on commit 6f9616c

Please sign in to comment.