|
From: <bul...@us...> - 2013-06-15 19:05:42
|
Revision: 22810
http://sourceforge.net/p/bzflag/code/22810
Author: bullet_catcher
Date: 2013-06-15 19:05:39 +0000 (Sat, 15 Jun 2013)
Log Message:
-----------
Add -Wredundant-decls and -pedantic to the set of standard GCC flags.
Prune the list of possible future warnings and annotate with the approximate number of each.
Modified Paths:
--------------
trunk/bzflag/configure.ac
Modified: trunk/bzflag/configure.ac
===================================================================
--- trunk/bzflag/configure.ac 2013-06-15 18:57:51 UTC (rev 22809)
+++ trunk/bzflag/configure.ac 2013-06-15 19:05:39 UTC (rev 22810)
@@ -690,13 +690,13 @@
# than the FLAGS they set.
#
# the GCC version is known to be at least 4.3 because it has C++0x support
-# possible future warnings: -Wconversion -Wfloat-equal -Wpointer-arith -Wredundant-decls -Wwrite-strings
-FLAGS="-Wall -Wextra -Wcast-qual -Wshadow -Wundef"
+# possible future warnings: -Wconversion (1894) -Wfloat-equal (317)
+FLAGS="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
case $host_os in
linux*)
AC_DEFINE(HALF_RATE_AUDIO, 1, [Half rate Audio])
CONF_CFLAGS="$CONF_CFLAGS $FLAGS"
- CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS -pedantic"
+ CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS"
case $host_vendor in
pc)
if expr `$CC -dumpversion` \>= "3.4" > /dev/null ; then
@@ -741,12 +741,13 @@
if test "$GCC" = yes ; then
FLAGS="$FLAGS -Wno-unknown-pragmas" # *silently* ignore "#pragma ident"
CONF_CFLAGS="$CONF_CFLAGS $FLAGS"
- CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS -pedantic"
+ CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS"
fi
;;
macos|darwin*)
CONF_CFLAGS="$CONF_CFLAGS $FLAGS";
- CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS -pedantic";;
+ CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS"
+ ;;
irix)
FLAGS="-Wall";
if test x$host_cpu = xmips64; then
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|