|
From: <sv...@va...> - 2014-09-18 19:39:19
|
Author: florian
Date: Thu Sep 18 19:39:10 2014
New Revision: 14555
Log:
r14319 dropped adding -Wwrite-strings to the compile flags.
Add it back in.
Modified:
trunk/configure.ac
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu Sep 18 19:39:10 2014
@@ -1656,6 +1656,10 @@
AC_GCC_WARNING_COND([pointer-sign], [HAS_POINTER_SIGN_WARNING])
AC_GCC_WARNING_COND([write-strings], [HAS_WRITE_STRINGS_WARNING])
+if test $has_warning_flag = yes; then
+ CFLAGS="$CFLAGS -Wwrite-strings"
+ CXXFLAGS="$CXXFLAGS -Wwrite-strings"
+fi
# Convenience function to check whether GCC supports a particular
# warning option. Similar to AC_GCC_WARNING_COND, but does a
|