diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-10-04 18:57:50 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-10-04 18:57:50 +0200 |
commit | e21884ad871f52bcd02fc492084bade3dfab275a (patch) | |
tree | 2a97768de2fc19ec680f5fbeeccc88163f2aa397 /configure.ac | |
parent | ecf405846aec3ce7455f68379d86d6888b135c50 (diff) | |
download | dabmod-e21884ad871f52bcd02fc492084bade3dfab275a.tar.gz dabmod-e21884ad871f52bcd02fc492084bade3dfab275a.tar.bz2 dabmod-e21884ad871f52bcd02fc492084bade3dfab275a.zip |
Actually enable the new warnings for C++
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 2205567..0c07732 100644 --- a/configure.ac +++ b/configure.ac @@ -79,14 +79,15 @@ AC_ARG_ENABLE([output_uhd], [AS_HELP_STRING([--disable-output-uhd], [Disable UHD output])], [], [enable_output_uhd=yes]) +AC_LANG_PUSH([C++]) AX_CHECK_COMPILE_FLAG([-Wduplicated-cond], [CFLAGS="$CFLAGS -Wduplicated-cond"]) AX_CHECK_COMPILE_FLAG([-Wduplicated-branches], [CFLAGS="$CFLAGS -Wduplicated-branches"]) AX_CHECK_COMPILE_FLAG([-Wlogical-op], [CFLAGS="$CFLAGS -Wlogical-op"]) AX_CHECK_COMPILE_FLAG([-Wrestrict], [CFLAGS="$CFLAGS -Wrestrict"]) -AX_CHECK_COMPILE_FLAG([-Wuseless-cast], [CFLAGS="$CFLAGS -Wuseless-cast"]) -AX_CHECK_COMPILE_FLAG([-Wdouble-precision], [CFLAGS="$CFLAGS -Wdouble-precision"]) AX_CHECK_COMPILE_FLAG([-Wshadow], [CFLAGS="$CFLAGS -Wshadow"]) +AX_CHECK_COMPILE_FLAG([-Wdouble-promotion], [CXXFLAGS="$CXXFLAGS -Wdouble-promotion"]) AX_CHECK_COMPILE_FLAG(["-Wformat=2"], [CFLAGS="$CFLAGS -Wformat=2"]) +AC_LANG_POP([C++]) PKG_CHECK_MODULES([FFTW], [fftw3f], [], [AC_MSG_ERROR([FFTW is required])]) |