aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-05-19 13:02:46 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-05-19 13:02:46 +0000
commit90632c63787bf9fcf78e15b04cc33a060d3971c6 (patch)
tree02c58de05da1433f0b4d370abf94c9cd3e4d2aa0
parentc2a3f405f8ce31b9fca29a4eb0021e8e46d22fa9 (diff)
downloadpaludis-90632c63787bf9fcf78e15b04cc33a060d3971c6.tar.gz
paludis-90632c63787bf9fcf78e15b04cc33a060d3971c6.tar.xz
Make Python less noisy
-rw-r--r--configure.ac6
-rw-r--r--python/Makefile.am1
2 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 91a7473..13fca45 100644
--- a/configure.ac
+++ b/configure.ac
@@ -426,6 +426,7 @@ PALUDIS_CXXFLAGS_NO_WREDUNDANT_DECLS=
PALUDIS_CXXFLAGS_NO_WSHADOW=
PALUDIS_CXXFLAGS_NO_WUNUSED=
PALUDIS_CXXFLAGS_NO_WEXTRA=
+PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS=
PALUDIS_CXXFLAGS_WITHOUT_PEDANTIC=
PALUDIS_CXXFLAGS_VISIBILITY=
AC_MSG_CHECKING([whether our compiler is iccy])
@@ -502,6 +503,10 @@ elif test "x${ac_cv_cxx_compiler_gnu}" = "xyes" ; then
PALUDIS_CXXFLAGS_WITHOUT_PEDANTIC=$PALUDIS_CXXFLAGS
CHECK_CXXFLAG([-Wlogical-op])
CHECK_CXXFLAG([-Wvla])
+ CHECK_CXXFLAG([-Wwrite-strings])
+ if test "x$cxxflag_success" = "xyes" ; then
+ PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS=-Wno-write-strings
+ fi
CHECK_CXXFLAG([-pedantic])
else
CHECK_CXXFLAG([-Wall])
@@ -514,6 +519,7 @@ AC_SUBST([PALUDIS_CXXFLAGS_NO_WSHADOW])
AC_SUBST([PALUDIS_CXXFLAGS_NO_WREDUNDANT_DECLS])
AC_SUBST([PALUDIS_CXXFLAGS_NO_WEXTRA])
AC_SUBST([PALUDIS_CXXFLAGS_NO_WUNUSED])
+AC_SUBST([PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS])
AC_MSG_CHECKING([whether to enable visibility])
AC_ARG_ENABLE([visibility],
diff --git a/python/Makefile.am b/python/Makefile.am
index 872d81c..ec20f90 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -8,6 +8,7 @@ AM_CXXFLAGS = -I$(top_srcdir) -I$(srcdir)/ \
@PALUDIS_CXXFLAGS_NO_WSHADOW@ \
@PALUDIS_CXXFLAGS_NO_WEXTRA@ \
@PALUDIS_CXXFLAGS_NO_WOLD_STYLE_CAST@ \
+ @PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS@ \
@PALUDIS_CXXFLAGS_VISIBILITY@
DEFS= \