From 3121171f56c2d4a273b89a9d1d47d9f50e027770 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Thu, 25 Feb 2016 18:30:27 +0100 Subject: otp: Add gcc option -Werror=implicit to get errors for missing function and variable declarations. --- erts/configure.in | 1 + 1 file changed, 1 insertion(+) (limited to 'erts/configure.in') diff --git a/erts/configure.in b/erts/configure.in index ba735fe921..8d178107a0 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -584,6 +584,7 @@ fi if test "x$GCC" = xyes; then # Treat certain GCC warnings as errors LM_TRY_ENABLE_CFLAG([-Werror=return-type], [WERRORFLAGS]) + LM_TRY_ENABLE_CFLAG([-Werror=implicit], [WERRORFLAGS]) # until the emulator can handle this, I suggest we turn it off! #WFLAGS="-Wall -Wshadow -Wcast-qual -Wmissing-declarations" -- cgit v1.2.3