diff --git a/build/unix/Makefile.am b/build/unix/Makefile.am index 17f39a4..b4b9cda 100644 --- a/build/unix/Makefile.am +++ b/build/unix/Makefile.am @@ -5,7 +5,6 @@ warningflags = \ -Wextra \ -Wshadow \ -Wunused \ - -Wmisleading-indentation \ -Wnull-dereference \ -Wvla \ -Wstrict-aliasing \ @@ -31,7 +30,6 @@ warningflags += \ -Wbool-conversion \ -Wextra-semi \ -Wnullable-to-nonnull-conversion \ - -Wno-implicit-int-float-conversion \ -Wno-unused-private-field \ -Wno-unused-command-line-argument # -Wzero-as-null-pointer-constant diff --git a/build/unix/configure.ac b/build/unix/configure.ac index 0f04a18..65676fb 100644 --- a/build/unix/configure.ac +++ b/build/unix/configure.ac @@ -111,6 +111,10 @@ AS_IF( ] ) +AX_CHECK_COMPILE_FLAG([-Wmisleading-indentation] , [COMPWARNFLAGS="$COMPWARNFLAGS -Wmisleading-indentation"] , , [-Werror]) +# Clang only +AX_CHECK_COMPILE_FLAG([-Wno-implicit-int-float-conversion], [COMPWARNFLAGS="$COMPWARNFLAGS -Wno-implicit-int-float-conversion"], , [-Werror]) + AC_SUBST([CXXSTD]) AC_SUBST([EXTRA_CXXFLAGS]) AC_SUBST([LDFLAGS]) diff --git a/src/ffft/FFTReal.hpp b/src/ffft/FFTReal.hpp index 1493ff9..37c0ef0 100644 --- a/src/ffft/FFTReal.hpp +++ b/src/ffft/FFTReal.hpp @@ -371,11 +371,11 @@ void FFTReal