summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>2006-11-04 12:13:28 +0000
committerrmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>2006-11-04 12:13:28 +0000
commit74cee076df3206e92f10d165758cd217f8d2cafd (patch)
treea1989d51ac9a45a6686c46c46d50a61970a36f7d
parent77eb93c4ccf951215df03c028b6bc439a36e27b0 (diff)
Applied patch from Christian Biere, which adds "-Wshadow" to gcc 3.x flags.
git-svn-id: https://dist.svn.sourceforge.net/svnroot/dist/trunk/dist@17 190e5f8e-a817-0410-acf6-e9863daed9af
-rw-r--r--mcon/U/ccflags.U4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcon/U/ccflags.U b/mcon/U/ccflags.U
index 13b511e..0deb0c3 100644
--- a/mcon/U/ccflags.U
+++ b/mcon/U/ccflags.U
@@ -150,8 +150,8 @@ default|recommended)
?X: turn warnings on if they're using gcc
case "$gccversion" in
1*|2*) dflt="$dflt -Wall";;
-?X: starting with version 3, add "-W -Wall -Wformat=2" by default
- *) dflt="$dflt -W -Wall -Wformat=2";;
+?X: starting with version 3, add "-W -Wall -Wformat=2 -Wshadow" by default
+ *) dflt="$dflt -W -Wall -Wformat=2 -Wshadow";;
esac
;;
esac