Enable more compiler warnings for C++
parent
b7c70fd99e
commit
dfcfdda318
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue