build: error on implicit function declaration

This patch modifies gcc options to error in case of implicit
declaration. Bug #612 has shown this kind of bugs can be very
costly.
pull/165/merge
Eric Leblond 13 years ago committed by Victor Julien
parent 4542cd0eec
commit 2fbb28ece6

@ -45,7 +45,7 @@ AC_INIT(configure.ac)
if test "$gccvernum" -ge "400"; then
dnl gcc 4.0 or later
CFLAGS="$CFLAGS -Wextra"
CFLAGS="$CFLAGS -Wextra -Werror=implicit-function-declaration"
else
CFLAGS="$CFLAGS -W"
fi

Loading…
Cancel
Save