From 6f9616c00a5efaad5df5832108348ffa97811e95 Mon Sep 17 00:00:00 2001 From: Peter M Date: Wed, 23 Oct 2024 15:07:26 +0200 Subject: [PATCH] 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 --- libs/exavmlib/lib/AVMPort.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/exavmlib/lib/AVMPort.ex b/libs/exavmlib/lib/AVMPort.ex index 12a333e7d..20767bb31 100644 --- a/libs/exavmlib/lib/AVMPort.ex +++ b/libs/exavmlib/lib/AVMPort.ex @@ -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