Make implicit function declarations a build error. They are not 64 bit safe and cause...
[mono.git] / configure.in
index a190ffadf32683f54d7748b0dce044e27224af36..8a17427230f474affa799cfdfe525fbcc212c07d 100644 (file)
@@ -489,6 +489,8 @@ if test x"$GCC" = xyes; then
         WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch-enum'
                # The runtime code does not respect ANSI C strict aliasing rules
                CFLAGS="$CFLAGS -fno-strict-aliasing"
+               # Implicit function declarations are not 64 bit safe
+               CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
 
                ORIG_CFLAGS=$CFLAGS
                CFLAGS="$CFLAGS -Wdeclaration-after-statement"