summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-04 18:23:48 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-04 18:23:48 +0200
commitecf405846aec3ce7455f68379d86d6888b135c50 (patch)
tree991dde7c175259a40e4bec19752bb848bc4da666 /configure.ac
parent8858381cbf233a0268036599213001dcd0f3b194 (diff)
downloaddabmod-ecf405846aec3ce7455f68379d86d6888b135c50.tar.gz
dabmod-ecf405846aec3ce7455f68379d86d6888b135c50.tar.bz2
dabmod-ecf405846aec3ce7455f68379d86d6888b135c50.zip
Enable some compilation warnings
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 172d43c..2205567 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,6 +79,16 @@ AC_ARG_ENABLE([output_uhd],
[AS_HELP_STRING([--disable-output-uhd], [Disable UHD output])],
[], [enable_output_uhd=yes])
+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(["-Wformat=2"], [CFLAGS="$CFLAGS -Wformat=2"])
+
+
PKG_CHECK_MODULES([FFTW], [fftw3f], [], [AC_MSG_ERROR([FFTW is required])])
echo "Checking zeromq"