Closed ningzhang closed 7 years ago
This is quite boring to explicitly export functions in the testsuite modules. Because it is harder to write tests this way. Instead, we can just inhibit the warning for the whole testsuite. Could you confirm that the following patch do the trick ?
diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
index b89a3bf..7b484f5 100644
--- a/testsuite/Makefile.am
+++ b/testsuite/Makefile.am
@@ -17,7 +17,7 @@ EBIN_FILES=$(MODULES:%.erl=$(EBIN_DIR)/%.beam)
LOG_DIR=@builddir@/logs
-ERLC_FLAGS = $(ERLC_GENERIC_FLAGS) -DSHOW_LOG
+ERLC_FLAGS = $(ERLC_GENERIC_FLAGS) -DSHOW_LOG +nowarn_export_all
include @top_srcdir@/erlang_deps.mk
Sure, I'm on it.
These two files also need to be adjusted:
www/code/myappmod.erl
www/shoppingcart/shopcart.erl
Shall we use the +nowarn_export_all
flag or an explicit export list?
Good catch. There is also some modules in mail and wiki applications. But for all these ones, I think, an explicit export of all public functions is the best choice. I'll try to push the fix very soon. Many thanks.
Cheers!
Compilation fails when compiling Yaws with the latest Erlang/OTP master branch (Version 20) with the following error message:
The above problem can be fixed with this patch.