aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-04 18:44:51 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-04 18:44:51 +0200
commited7e9231e9f4c472a134ad46e6bc70b39684ddf6 (patch)
tree35d05ab8bb38b7ea7c76a4a79c70ae73bd4ccfa0 /configure.ac
parent1cbdb69dffaa0a649b762b84d5a485e68f5188f6 (diff)
downloaddabmux-ed7e9231e9f4c472a134ad46e6bc70b39684ddf6.tar.gz
dabmux-ed7e9231e9f4c472a134ad46e6bc70b39684ddf6.tar.bz2
dabmux-ed7e9231e9f4c472a134ad46e6bc70b39684ddf6.zip
Enable additional compiler warnings
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8bc723a..2c84f8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,6 +152,15 @@ AS_IF([test "x$enable_output_edi" = "xyes"],
AS_IF([test "x$enable_output_edi" = "xyes"],
[AC_DEFINE(HAVE_CURL, [1], [Define if cURL is available])])
+AC_LANG_PUSH([C++])
+AX_CHECK_COMPILE_FLAG([-Wduplicated-cond], [CXXFLAGS="$CXXFLAGS -Wduplicated-cond"])
+AX_CHECK_COMPILE_FLAG([-Wduplicated-branches], [CXXFLAGS="$CXXFLAGS -Wduplicated-branches"])
+AX_CHECK_COMPILE_FLAG([-Wlogical-op], [CXXFLAGS="$CXXFLAGS -Wlogical-op"])
+AX_CHECK_COMPILE_FLAG([-Wrestrict], [CXXFLAGS="$CXXFLAGS -Wrestrict"])
+AX_CHECK_COMPILE_FLAG([-Wdouble-promotion], [CXXFLAGS="$CXXFLAGS -Wdouble-promotion"])
+AX_CHECK_COMPILE_FLAG(["-Wformat=2"], [CXXFLAGS="$CXXFLAGS -Wformat=2"])
+AC_LANG_POP([C++])
+
# ZeroMQ
AC_CHECK_LIB(zmq, zmq_init, [] , AC_MSG_ERROR(ZeroMQ libzmq is required))