Skip to content

Commit

Permalink
Merge pull request #1352 from petermm/fix-avmport-warnings
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bettio committed Nov 23, 2024
2 parents bdfea6d + 02fbd14 commit a6d2baf
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 a6d2baf

Please sign in to comment.