diff --git a/configure.ac b/configure.ac index 5da8099e96e5846ff9463bbc12be515c6141cc1a..767c36c791db1f016671dabd5cc83a7d5f7d62a9 100644 --- a/configure.ac +++ b/configure.ac @@ -49,7 +49,7 @@ esac # Use C++ for testing headers AC_LANG([C++]) -AM_CXXFLAGS="-std=gnu++20 -Wall -Wno-parentheses -Wold-style-cast" +AM_CXXFLAGS="-std=gnu++20 -Wall -Wno-dangling-else -Wextra -Wno-unused-parameter -Wold-style-cast" AC_SUBST([AM_CXXFLAGS]) # If default 'ar' is not available, try to find one with a host prefix (see ticket #145) diff --git a/mex/build/matlab/mex.am b/mex/build/matlab/mex.am index b9f633d93874888eea1c2d136133383651b0d449..647bec4cc335de0aede483029ec96cfe9832701d 100644 --- a/mex/build/matlab/mex.am +++ b/mex/build/matlab/mex.am @@ -7,9 +7,9 @@ DEFS += $(MATLAB_DEFS) DEFS += -DMATLAB_MEX_FILE DEFS += -DMEXEXT=\"$(MEXEXT)\" -AM_CFLAGS = $(MATLAB_CFLAGS) -Wall -Wno-parentheses +AM_CFLAGS = $(MATLAB_CFLAGS) -Wall -Wno-parentheses # TODO: use same warnings as C++ AM_FCFLAGS = $(MATLAB_FCFLAGS) -Wall -Wimplicit-interface -AM_CXXFLAGS = -std=gnu++20 $(MATLAB_CXXFLAGS) -Wall -Wno-parentheses -Wold-style-cast +AM_CXXFLAGS = -std=gnu++20 $(MATLAB_CXXFLAGS) -Wall -Wno-dangling-else -Wextra -Wno-unused-parameter -Wold-style-cast AM_LDFLAGS = $(MATLAB_LDFLAGS) LIBS += $(MATLAB_LIBS) diff --git a/mex/build/octave/mex.am b/mex/build/octave/mex.am index b1b5fe86bb22cac68061f25ce6d23609114f21eb..a5e126b9a211063a9e1842ee358c55fd28e93350 100644 --- a/mex/build/octave/mex.am +++ b/mex/build/octave/mex.am @@ -5,9 +5,9 @@ AM_CPPFLAGS += -I$(top_srcdir)/../../sources DEFS += -DOCTAVE_MEX_FILE DEFS += -DMEXEXT=\".mex\" -AM_CFLAGS = $(shell $(MKOCTFILE) -p CPICFLAG) -Wall -Wno-parentheses +AM_CFLAGS = $(shell $(MKOCTFILE) -p CPICFLAG) -Wall -Wno-parentheses # TODO: use same warnings as C++ AM_FCFLAGS = $(shell $(MKOCTFILE) -p FPICFLAG) -Wall -Wimplicit-interface -AM_CXXFLAGS = -std=gnu++20 $(shell $(MKOCTFILE) -p CXXPICFLAG) -Wall -Wno-parentheses -Wold-style-cast +AM_CXXFLAGS = -std=gnu++20 $(shell $(MKOCTFILE) -p CXXPICFLAG) -Wall -Wno-dangling-else -Wextra -Wno-unused-parameter -Wold-style-cast AM_LDFLAGS = $(shell $(MKOCTFILE) -p DL_LDFLAGS) # See the comments in configure.ac