Skip to contentSkip to conversation

Modify CFLAGS to have useful gcc warnings.

PATCH In review Eric Leblond 1 participant 1 message Jul 23, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 Modify CFLAGS to have useful gcc warnings.

This patch modifies CFLAGS to add -Wall and -Wextra flags to gcc compilation flag. This will help to detect some stupid problems.

---
 configure.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
configure.in +2 -0
index f902792..8e0f6a3 100644
@@ -30,6 +30,8 @@ dnl Checks for library functions.
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS(socket strerror)
 
+CFLAGS="$CFLAGS -Wall -Wextra"
+
 dnl Check for the right nfnetlink version
 LIBNFNETLINK_REQUIRED=0.0.39
 LIBNETFILTER_CONNTRACK_REQUIRED=0.0.95
Signature · 1 line
1.5.4.3