changeset 33834:495340edba54

configure: do not add -Werror-implicit-function-declaration to CXXFLAGS This warning option is C-only, so do not use it for C++.
author diego
date Mon, 25 Jul 2011 23:16:26 +0000
parents 1e096f5e51c7
children 8d3d721a0532
files configure
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Jul 25 23:16:23 2011 +0000
+++ b/configure	Mon Jul 25 23:16:26 2011 +0000
@@ -2555,7 +2555,8 @@
     CFLAGS="-O2 $_march $_mcpu $_pipe"
   else
     CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
-    WARNFLAGS="-Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror-implicit-function-declaration"
+    WARNFLAGS="-Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls"
+    WARN_CFLAGS="-Werror-implicit-function-declaration"
     extra_ldflags="$extra_ldflags -ffast-math"
   fi
 else