From: Andrew Waterman Date: Thu, 20 Nov 2014 02:08:17 +0000 (-0800) Subject: Suppress harmless warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=306b7359e800d06103e602464afc7e9ac8842572;p=riscv-isa-sim.git Suppress harmless warnings specifically, unused variables in auto-generated code. --- diff --git a/configure b/configure index 258ad60..abddde5 100755 --- 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" #------------------------------------------------------------------------- diff --git a/configure.ac b/configure.ac index ce84dc5..d6fb7e5 100644 --- a/configure.ac +++ b/configure.ac @@ -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