summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-03-18 01:58:34 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-03-18 01:58:34 +0000
commitc395df9bf8463fd367af146c3ab317b1c3ca9b96 (patch)
tree410d338528725098ceff51ce0084409371a75c97
parentddf32b9455806ea339040d4aae4d556eae05236f (diff)
downloadvte-c395df9bf8463fd367af146c3ab317b1c3ca9b96.tar.gz
Adjust warnings used when in maintainer mode.
* autogen.sh configure.in: Adjust warnings used when in maintainer mode.
-rwxr-xr-xautogen.sh4
-rw-r--r--configure.in9
2 files changed, 10 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index f47635e8..b8240d64 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,7 +1,5 @@
#!/bin/bash -e
-#PROTOTYPES="-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
-WARNINGS="-Wcast-align $PROTOTYPES"
-CFLAGS="${CFLAGS:--g3 -Wall $WARNINGS}" ; export CFLAGS
+CFLAGS="${CFLAGS:--g3 -Wall}" ; export CFLAGS
set -x
libtoolize -f
autoheader
diff --git a/configure.in b/configure.in
index e33fb751..2db1b6d9 100644
--- a/configure.in
+++ b/configure.in
@@ -35,6 +35,15 @@ AM_MAINTAINER_MODE
if test x$USE_MAINTAINER_MODE != x ; then
if test x$USE_MAINTAINER_MODE != xno ; then
+ if test x$GCC != xno ; then
+ CFLAGS="${CFLAGS} -Wunused"
+ CFLAGS="${CFLAGS} -Wuninitialized"
+ CFLAGS="${CFLAGS} -Wimplicit"
+ CFLAGS="${CFLAGS} -Wstrict-prototypes"
+ CFLAGS="${CFLAGS} -Wmissing-prototypes"
+ CFLAGS="${CFLAGS} -Wmissing-declarations"
+ CFLAGS="${CFLAGS} -Wcast-align"
+ fi
VTE_DEBUG=1
fi
fi