From 74213c9a4f4cf7ec556b44cbcdd6ca414ae4374b Mon Sep 17 00:00:00 2001 From: psychon Date: Mon, 12 Nov 2007 21:30:50 +0000 Subject: [PATCH] Add -Wextra do the CXXFLAGS This already caused one of the commits before, so warnings are always nice :) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@870 726aef4b-f618-498e-8847-2d620e286838 --- configure | 6 ++++-- configure.in | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/configure b/configure index b46acd18..6ac514b0 100755 --- a/configure +++ b/configure @@ -2503,10 +2503,12 @@ if test "${enable_perl+set}" = set; then fi +appendCXX -Wall -Wextra -Wno-unused + if test "$DEBUG" != "no"; then - appendCXX -Wall -ggdb -D_DEBUG + appendCXX -ggdb -D_DEBUG else - appendCXX -Wall -O2 -fomit-frame-pointer + appendCXX -O2 -fomit-frame-pointer fi if test "$IPV6" != "no"; then diff --git a/configure.in b/configure.in index 1c2190b2..28e5245a 100644 --- a/configure.in +++ b/configure.in @@ -84,11 +84,13 @@ AC_ARG_ENABLE( [openssl], AC_ARG_ENABLE( [perl], AC_HELP_STRING([--disable-perl], [disable perl]), [if test "$enableval" = "no" ; then NOPERL=1; fi],) - + +appendCXX -Wall -Wextra -Wno-unused + if test "$DEBUG" != "no"; then - appendCXX -Wall -ggdb -D_DEBUG + appendCXX -ggdb -D_DEBUG else - appendCXX -Wall -O2 -fomit-frame-pointer + appendCXX -O2 -fomit-frame-pointer fi if test "$IPV6" != "no"; then