From: Eric Leblond Date: Wed, 31 Oct 2012 14:30:38 +0000 (+0100) Subject: build: error on implicit function declaration X-Git-Tag: suricata-1.4beta3~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2fbb28ece62c8e9a29bdd4e1665a62ece315fd42;p=thirdparty%2Fsuricata.git 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. --- diff --git a/configure.ac b/configure.ac index a0c7af72e4..c8236539ae 100644 --- a/configure.ac +++ b/configure.ac @@ -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