aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-06-20 23:39:30 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-06-20 23:39:30 +0000
commit7d16ea2304c12a646ebef54fdbf15279d594f15d (patch)
treedbb9b1be9fda93ba39db86782493954278477783
parent1eb7ee74500817f588f8cb25c5ecd232b7e5f1ce (diff)
downloadpaludis-7d16ea2304c12a646ebef54fdbf15279d594f15d.tar.gz
paludis-7d16ea2304c12a646ebef54fdbf15279d594f15d.tar.xz
Add PALUDIS_CXXFLAGS_NO_WMISSING_NORETURN.
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5d7de0f..5fff1aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -437,6 +437,7 @@ PALUDIS_CXXFLAGS_NO_WSHADOW=
PALUDIS_CXXFLAGS_NO_WUNUSED=
PALUDIS_CXXFLAGS_NO_WEXTRA=
PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS=
+PALUDIS_CXXFLAGS_NO_WMISSING_NORETURN=
PALUDIS_CXXFLAGS_WITHOUT_PEDANTIC=
PALUDIS_CXXFLAGS_VISIBILITY=
AC_MSG_CHECKING([whether our compiler is iccy])
@@ -498,6 +499,9 @@ elif test "x${ac_cv_cxx_compiler_gnu}" = "xyes" ; then
fi
CHECK_CXXFLAG([-Wstrict-null-sentinel])
CHECK_CXXFLAG([-Wmissing-noreturn])
+ if test "x$cxxflag_success" = "xyes" ; then
+ PALUDIS_CXXFLAGS_NO_WMISSING_NORETURN=-Wno-missing-noreturn
+ fi
CHECK_CXXFLAG([-Woverloaded-virtual])
CHECK_CXXFLAG([-Winit-self])
CHECK_CXXFLAG([-Wunreachable-code])
@@ -530,6 +534,7 @@ 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_SUBST([PALUDIS_CXXFLAGS_NO_WMISSING_NORETURN])
AC_MSG_CHECKING([whether to enable visibility])
AC_ARG_ENABLE([visibility],