Suppress harmless warnings
authorAndrew Waterman <waterman@cs.berkeley.edu>
Thu, 20 Nov 2014 02:08:17 +0000 (18:08 -0800)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Thu, 20 Nov 2014 02:08:17 +0000 (18:08 -0800)
specifically, unused variables in auto-generated code.

configure
configure.ac

index 258ad609880e66ff12dffe57785a931d5ffacae3..abddde5249399e3808c0043230120aaa0605b432 100755 (executable)
--- a/configure
+++ b/configure
@@ -4006,9 +4006,9 @@ fi
 # Default compiler flags
 #-------------------------------------------------------------------------
 
-CFLAGS="-Wall -O2 -Wno-unused"
+CFLAGS="-Wall -Wno-unused -O2"
 
-CXXFLAGS="-Wall -O2 -std=c++11"
+CXXFLAGS="-Wall -Wno-unused -O2 -std=c++11"
 
 
 #-------------------------------------------------------------------------
index ce84dc539e729ca799c38da3febfbd8f6663e8a5..d6fb7e5df9a75044dc1ca6ec24af411878ea4f53 100644 (file)
@@ -72,8 +72,8 @@ AC_HEADER_STDC
 # Default compiler flags
 #-------------------------------------------------------------------------
 
-AC_SUBST([CFLAGS],  ["-Wall -O2 -Wno-unused"])
-AC_SUBST([CXXFLAGS],["-Wall -O2 -std=c++11"])
+AC_SUBST([CFLAGS],  ["-Wall -Wno-unused -O2"])
+AC_SUBST([CXXFLAGS],["-Wall -Wno-unused -O2 -std=c++11"])
 
 #-------------------------------------------------------------------------
 # MCPPBS subproject list