Revert "mesa: Remove C++11 narrowing warnings"
authorChad Versace <chad.versace@linux.intel.com>
Fri, 10 Aug 2012 21:02:03 +0000 (14:02 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 10 Aug 2012 21:05:14 +0000 (14:05 -0700)
This reverts commit 9f5a5d541d5c1ff2e440791ba8ff44d0233daeb4.

Fixes the following build error on GCC 4.2.3:
  cc1plus: error: unrecognized command line option "-Wno-narrowing"
The GCC Manual incorrectly stated that commit 9f5a5d54 woulde be safe for
old versions of GCC.

Reported-by: Andy Furniss <andyqos@ukfsn.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
configure.ac

index fa4fd71271717ea735e4d56d65d092c6e646bc5b..89686b47fcfdadbe2601c3e62dc65a00a6292f69 100644 (file)
@@ -228,9 +228,6 @@ if test "x$GXX" = xyes; then
     # gcc's builtin memcmp is slower than glibc's
     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
     CXXFLAGS="$CXXFLAGS -fno-builtin-memcmp"
-
-    # Silence C++11 warnings that we don't care about.
-    CXXFLAGS="$CXXFLAGS -Wno-narrowing"
 fi
 
 dnl even if the compiler appears to support it, using visibility attributes isn't