diff options
Diffstat (limited to 'lib/megaco/configure.in')
-rw-r--r-- | lib/megaco/configure.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/megaco/configure.in b/lib/megaco/configure.in index 722ccc3fb4..643267a154 100644 --- a/lib/megaco/configure.in +++ b/lib/megaco/configure.in @@ -162,6 +162,11 @@ else fi AC_SUBST(OTP_EXTRA_FLAGS) +if test "x$GCC" = xyes; then + # Treat certain GCC warnings as errors + LM_TRY_ENABLE_CFLAG([-Werror=return-type], [CFLAGS]) +fi + dnl dnl If ${ERL_TOP}/make/otp_ded.mk.in exists and contains DED_MK_VSN > 0, dnl every thing releted to compiling Dynamic Erlang Drivers can be found |