Skip to content

Commit a6d2baf

Browse files
committed
Merge pull request #1352 from petermm/fix-avmport-warnings
Fix AVMPort compiler warnings Recent changes introduced a spew of compiler warnings eg. see bottom here: https://github.com/atomvm/AtomVM/pull/1351/files These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents bdfea6d + 02fbd14 commit a6d2baf

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)