From 7e774b9503c78c1d80affb9db2f7db6b5ca41d92 Mon Sep 17 00:00:00 2001 From: AlexPeshkoff Date: Tue, 13 Aug 2024 13:29:12 +0300 Subject: [PATCH] Avoid getting warning about unknown flag for plain-C files --- builds/posix/make.android.arm64 | 2 +- builds/posix/make.android.arme | 2 +- builds/posix/make.android.x86 | 2 +- builds/posix/make.android.x86_64 | 2 +- builds/posix/make.defaults | 4 ++-- builds/posix/make.platform.solaris.examples | 2 +- builds/posix/prefix.aix_powerpc | 2 +- builds/posix/prefix.darwin_i386 | 2 +- builds/posix/prefix.darwin_powerpc | 2 +- builds/posix/prefix.darwin_ppc64 | 2 +- builds/posix/prefix.darwin_x86_64 | 2 +- builds/posix/prefix.freebsd | 2 +- builds/posix/prefix.freebsd_amd64 | 2 +- builds/posix/prefix.linux | 2 +- builds/posix/prefix.linux_amd64 | 2 +- builds/posix/prefix.linux_arm | 2 +- builds/posix/prefix.linux_arm64 | 4 ++-- builds/posix/prefix.linux_generic | 2 +- builds/posix/prefix.linux_ia64 | 2 +- builds/posix/prefix.linux_loongarch | 4 ++-- builds/posix/prefix.linux_mips | 2 +- builds/posix/prefix.linux_mips64el | 4 ++-- builds/posix/prefix.linux_mipsel | 2 +- builds/posix/prefix.linux_powerpc | 4 ++-- builds/posix/prefix.linux_powerpc64 | 4 ++-- builds/posix/prefix.linux_powerpc64el | 4 ++-- builds/posix/prefix.linux_riscv64 | 4 ++-- builds/posix/prefix.linux_s390x | 2 +- builds/posix/prefix.linux_sparc32 | 2 +- builds/posix/prefix.mingw | 4 ++-- builds/posix/prefix.netbsd | 2 +- builds/posix/prefix.solaris-64gcc | 2 +- builds/posix/prefix.solx86gcc | 2 +- builds/posix/prefix.solx86gcc_64 | 2 +- 34 files changed, 43 insertions(+), 43 deletions(-) diff --git a/builds/posix/make.android.arm64 b/builds/posix/make.android.arm64 index ec13715e87..20aa9587ab 100644 --- a/builds/posix/make.android.arm64 +++ b/builds/posix/make.android.arm64 @@ -39,7 +39,7 @@ COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DARM64 -pipe -Wno-inline-new-delete OPTIMIZE_FLAGS=-fno-omit-frame-pointer -WARN_FLAGS=-Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable +WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable PROD_FLAGS=$(COMMON_FLAGS) $(OPTIMIZE_FLAGS) DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS) diff --git a/builds/posix/make.android.arme b/builds/posix/make.android.arme index 6bac9c040f..283492d555 100644 --- a/builds/posix/make.android.arme +++ b/builds/posix/make.android.arme @@ -39,7 +39,7 @@ COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DARM -pipe -M -Wno-inline-new-delete OPTIMIZE_FLAGS=-fno-omit-frame-pointer -WARN_FLAGS=-Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable +WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable PROD_FLAGS=$(COMMON_FLAGS) $(OPTIMIZE_FLAGS) DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS) diff --git a/builds/posix/make.android.x86 b/builds/posix/make.android.x86 index ec04d0c563..42906e0060 100644 --- a/builds/posix/make.android.x86 +++ b/builds/posix/make.android.x86 @@ -39,7 +39,7 @@ COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -pipe -MMD -fP -Wno-inline-new-delete OPTIMIZE_FLAGS=-fno-omit-frame-pointer -WARN_FLAGS=-Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable +WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable PROD_FLAGS=$(COMMON_FLAGS) $(OPTIMIZE_FLAGS) DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS) diff --git a/builds/posix/make.android.x86_64 b/builds/posix/make.android.x86_64 index c5baa0ec80..3602f4e2f6 100644 --- a/builds/posix/make.android.x86_64 +++ b/builds/posix/make.android.x86_64 @@ -39,7 +39,7 @@ COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DAMD64 -pipe -Wno-inline-new-delete OPTIMIZE_FLAGS=-fno-omit-frame-pointer -WARN_FLAGS=-Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable +WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable PROD_FLAGS=$(COMMON_FLAGS) $(OPTIMIZE_FLAGS) DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS) diff --git a/builds/posix/make.defaults b/builds/posix/make.defaults index 3f32e80832..3c28683f6f 100755 --- a/builds/posix/make.defaults +++ b/builds/posix/make.defaults @@ -110,8 +110,8 @@ GLOB_OPTIONS:= #____________________________________________________________________________ -# Global c++ flags: firebird needs no RTTI, choose build standard -PLUSPLUS_FLAGS:= -fno-rtti -std=c++17 +# Global c++ flags: firebird needs no RTTI, choose build standard and c++ specific warnings level +PLUSPLUS_FLAGS:= -fno-rtti -std=c++17 -Werror=delete-incomplete # If this is defined then we use special rules useful for developers only IsDeveloper = @DEVEL_FLG@ diff --git a/builds/posix/make.platform.solaris.examples b/builds/posix/make.platform.solaris.examples index 0932ac57f8..7f69d98690 100644 --- a/builds/posix/make.platform.solaris.examples +++ b/builds/posix/make.platform.solaris.examples @@ -19,7 +19,7 @@ # Use SOLX86 to identify x86 version of Solaris. Neil McCalden # 2 Oct 2002, Nickolay Samofatov - Major Cleanup -WARNINGS=-Werror=delete-incomplete -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wwrite-strings -Wno-non-virtual-dtor +WARNINGS=-Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wwrite-strings -Wno-non-virtual-dtor COMM_SOLX_FLAGS:=-DSOLARIS -DBSD_COMP -fno-omit-frame-pointer -fmessage-length=0 -MMD -fPIC SFIO=@SFIO_DIR@ diff --git a/builds/posix/prefix.aix_powerpc b/builds/posix/prefix.aix_powerpc index 3f50328059..860f84a734 100644 --- a/builds/posix/prefix.aix_powerpc +++ b/builds/posix/prefix.aix_powerpc @@ -59,7 +59,7 @@ SHRLIB_FOREIGN_EXT=a PROD_FLAGS=-ggdb -O3 -fsigned-char -fmessage-length=0 -fno-omit-frame-pointer -pipe -MMD -fPIC # -Wno-unused-variable -DEV_FLAGS=-ggdb -O0 -fsigned-char -fmessage-length=0 -pipe -MMD -fPIC -Werror=delete-incomplete -Wall -Wextra -Wno-unused-parameter -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -O0 -fsigned-char -fmessage-length=0 -pipe -MMD -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-non-virtual-dtor # link options when using IBM /usr/bin/ld fronted by g++ EXE_LINK_OPTIONS= $(LDFLAGS) $(THR_FLAGS) $(UNDEF_FLAGS) $(LIB_PATH_OPTS) -Wl,-bbigtoc,-brtl diff --git a/builds/posix/prefix.darwin_i386 b/builds/posix/prefix.darwin_i386 index 0a1880f3c6..ff6069839d 100644 --- a/builds/posix/prefix.darwin_i386 +++ b/builds/posix/prefix.darwin_i386 @@ -30,7 +30,7 @@ MACOSX_DEPLOYMENT_TARGET=10.7 export MACOSX_DEPLOYMENT_TARGET PROD_FLAGS=-O1 -DDARWIN -pipe -MMD -fPIC -fno-common -arch i386 -mmacosx-version-min=10.7 -DEV_FLAGS=-ggdb -DDARWIN -pipe -MMD -fPIC -fno-common -Werror=delete-incomplete -Wall -arch i386 -mmacosx-version-min=10.7 -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DDARWIN -pipe -MMD -fPIC -fno-common -Wall -arch i386 -mmacosx-version-min=10.7 -Wno-non-virtual-dtor CXXFLAGS:=$(CXXFLAGS) -fvisibility-inlines-hidden -fvisibility=hidden -fno-weak EXE_LINK_OPTIONS+=-m32 diff --git a/builds/posix/prefix.darwin_powerpc b/builds/posix/prefix.darwin_powerpc index 29d2ae51fa..c56b5feaed 100644 --- a/builds/posix/prefix.darwin_powerpc +++ b/builds/posix/prefix.darwin_powerpc @@ -21,7 +21,7 @@ MACOSX_DEPLOYMENT_TARGET=10.2 export MACOSX_DEPLOYMENT_TARGET PROD_FLAGS=-DDARWIN -pipe -p -MMD -fPIC -fno-common -arch ppc -mmacosx-version-min=10.2 -DEV_FLAGS=-ggdb -DDARWIN -pipe -p -MMD -fPIC -fno-common -Werror=delete-incomplete -Wall -arch ppc -mmacosx-version-min=10.2 -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DDARWIN -pipe -p -MMD -fPIC -fno-common -Wall -arch ppc -mmacosx-version-min=10.2 -Wno-non-virtual-dtor CXXFLAGS:=$(CXXFLAGS) -fvisibility-inlines-hidden -fvisibility=hidden -fno-weak include $(ROOT)/gen/darwin.defaults diff --git a/builds/posix/prefix.darwin_ppc64 b/builds/posix/prefix.darwin_ppc64 index 1dabddfc25..a33ed45489 100644 --- a/builds/posix/prefix.darwin_ppc64 +++ b/builds/posix/prefix.darwin_ppc64 @@ -33,7 +33,7 @@ MACOSX_DEPLOYMENT_TARGET=10.5 export MACOSX_DEPLOYMENT_TARGET PROD_FLAGS=-O3 -DDARWIN -pipe -p -MMD -fPIC -fno-common -mmacosx-version-min=10.5 -DEV_FLAGS=-ggdb -DDARWIN -pipe -p -MMD -fPIC -fno-common -Werror=delete-incomplete -Wall -mmacosx-version-min=10.5 -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DDARWIN -pipe -p -MMD -fPIC -fno-common -Wall -mmacosx-version-min=10.5 -Wno-non-virtual-dtor CXXFLAGS:=$(CXXFLAGS) -fvisibility-inlines-hidden -fvisibility=hidden EXE_LINK_OPTIONS+=-arch ppc64 diff --git a/builds/posix/prefix.darwin_x86_64 b/builds/posix/prefix.darwin_x86_64 index e4640893da..6280c8607f 100644 --- a/builds/posix/prefix.darwin_x86_64 +++ b/builds/posix/prefix.darwin_x86_64 @@ -32,7 +32,7 @@ MACOSX_DEPLOYMENT_TARGET=10.9 export MACOSX_DEPLOYMENT_TARGET PROD_FLAGS=-O1 -DDARWIN -pipe -MMD -fPIC -fno-common -mmacosx-version-min=10.7 -DEV_FLAGS=-ggdb -DDARWIN -pipe -MMD -fPIC -fno-omit-frame-pointer -fno-common -Werror=delete-incomplete -Wall -fno-optimize-sibling-calls -mmacosx-version-min=10.7 -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DDARWIN -pipe -MMD -fPIC -fno-omit-frame-pointer -fno-common -Wall -fno-optimize-sibling-calls -mmacosx-version-min=10.7 -Wno-non-virtual-dtor CXXFLAGS:=$(CXXFLAGS) -fvisibility-inlines-hidden -fvisibility=hidden -msse4 LD_FLAGS+=-liconv diff --git a/builds/posix/prefix.freebsd b/builds/posix/prefix.freebsd index 0a8f69ee45..d14f850448 100644 --- a/builds/posix/prefix.freebsd +++ b/builds/posix/prefix.freebsd @@ -21,4 +21,4 @@ EXE_LINK_OPTIONS+=-Wl,-rpath,../gen/firebird/lib PROD_FLAGS=-O -fno-builtin -DFREEBSD -pipe -MMD -fPIC -DEV_FLAGS=-ggdb -DFREEBSD -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DFREEBSD -pipe -MMD -p -fPIC -Wall -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.freebsd_amd64 b/builds/posix/prefix.freebsd_amd64 index e12d62b4ef..0736d87e93 100644 --- a/builds/posix/prefix.freebsd_amd64 +++ b/builds/posix/prefix.freebsd_amd64 @@ -21,7 +21,7 @@ EXE_LINK_OPTIONS := $(LDFLAGS) $(THR_FLAGS) $(UNDEF_FLAGS) $(LIB_PATH_OPTS) -Wl,-rpath,../gen/firebird/lib PROD_FLAGS=-O -fno-builtin -DFREEBSD -DAMD64 -pipe -MMD -fPIC -DEV_FLAGS=-ggdb -DFREEBSD -DAMD64 -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DFREEBSD -DAMD64 -pipe -MMD -p -fPIC -Wall -Wno-non-virtual-dtor # This file must be compiled with SSE4.2 support %/CRC32C.o: CXXFLAGS += -msse4 diff --git a/builds/posix/prefix.linux b/builds/posix/prefix.linux index c86292771e..7daa71fa8a 100644 --- a/builds/posix/prefix.linux +++ b/builds/posix/prefix.linux @@ -20,7 +20,7 @@ COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -pipe -MMD -fPIC -fmessage-length=0 OPTIMIZE_FLAGS=-O3 -march=i586 -mtune=i686 -fno-omit-frame-pointer -WARN_FLAGS=-Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-narrowing -Wno-unused-local-typedefs +WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-narrowing -Wno-unused-local-typedefs PLATFORM_PLUSPLUS_FLAGS=-Wno-invalid-offsetof -Wno-class-memaccess PROD_FLAGS=$(COMMON_FLAGS) $(OPTIMIZE_FLAGS) diff --git a/builds/posix/prefix.linux_amd64 b/builds/posix/prefix.linux_amd64 index 09707b6ef0..99f27d772f 100644 --- a/builds/posix/prefix.linux_amd64 +++ b/builds/posix/prefix.linux_amd64 @@ -20,7 +20,7 @@ COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DAMD64 -pipe -MMD -fPIC -fmessage-length=0 OPTIMIZE_FLAGS=-O3 -fno-omit-frame-pointer -WARN_FLAGS=-Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-narrowing -Wno-unused-local-typedefs +WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-narrowing -Wno-unused-local-typedefs PLATFORM_PLUSPLUS_FLAGS=-Wno-invalid-offsetof -Wno-class-memaccess #VALGRIND_FLAGS=-DUSE_VALGRIND diff --git a/builds/posix/prefix.linux_arm b/builds/posix/prefix.linux_arm index 8e0b22205c..caf34549ab 100644 --- a/builds/posix/prefix.linux_arm +++ b/builds/posix/prefix.linux_arm @@ -23,4 +23,4 @@ COMMON_FLAGS=-DLINUX -DARM -pipe -MMD -fPIC -fsigned-char -fmessage-length=0 -DFB_SEND_FLAGS=MSG_NOSIGNAL PROD_FLAGS=$(COMMON_FLAGS) -O3 -DEV_FLAGS=$(COMMON_FLAGS) -p -ggdb -Werror=delete-incomplete -Wall -Wno-non-virtual-dtor +DEV_FLAGS=$(COMMON_FLAGS) -p -ggdb -Wall -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.linux_arm64 b/builds/posix/prefix.linux_arm64 index bef1490dd1..a5a87550a3 100644 --- a/builds/posix/prefix.linux_arm64 +++ b/builds/posix/prefix.linux_arm64 @@ -21,7 +21,7 @@ #LD=@CXX@ #PROD_FLAGS=-ggdb -O3 -fno-omit-frame-pointer -DLINUX -pipe -MMD -fPIC -#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-switch +#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch PROD_FLAGS=-O3 -DLINUX -DARM64 -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -DEV_FLAGS=-ggdb -DLINUX -DARM64 -pipe -p -MMD -fPIC -Werror=delete-incomplete -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DLINUX -DARM64 -pipe -p -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.linux_generic b/builds/posix/prefix.linux_generic index 57b96c5f00..47e2ec6633 100644 --- a/builds/posix/prefix.linux_generic +++ b/builds/posix/prefix.linux_generic @@ -21,4 +21,4 @@ COMMON_FLAGS=-DLINUX -pipe -MMD -fPIC -DFB_SEND_FLAGS=MSG_NOSIGNAL PROD_FLAGS=-ggdb -O3 $(COMMON_FLAGS) -DEV_FLAGS=-ggdb -p -Werror=delete-incomplete -Wall -Wno-switch $(COMMON_FLAGS) -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -p -Wall -Wno-switch $(COMMON_FLAGS) -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.linux_ia64 b/builds/posix/prefix.linux_ia64 index a073d1a8e1..cf223689c5 100644 --- a/builds/posix/prefix.linux_ia64 +++ b/builds/posix/prefix.linux_ia64 @@ -20,7 +20,7 @@ COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DIA64 -pipe -MMD -fPIC -fmessage-length=0 OPTIMIZE_FLAGS=-O3 -fno-omit-frame-pointer -WARN_FLAGS=-Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-non-virtual-dtor +WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-non-virtual-dtor PROD_FLAGS=$(COMMON_FLAGS) $(OPTIMIZE_FLAGS) DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS) diff --git a/builds/posix/prefix.linux_loongarch b/builds/posix/prefix.linux_loongarch index 0158106db3..8dcb1c8e36 100644 --- a/builds/posix/prefix.linux_loongarch +++ b/builds/posix/prefix.linux_loongarch @@ -22,7 +22,7 @@ #LD=@CXX@ #PROD_FLAGS=-ggdb -O3 -fno-omit-frame-pointer -DLINUX -pipe -MMD -fPIC -#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-switch +#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch PROD_FLAGS=-O3 -DLINUX -DLOONGARCH -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -std=gnu++03 -fno-delete-null-pointer-checks -DEV_FLAGS=-ggdb -DLINUX -DLOONGARCH -pipe -p -MMD -fPIC -Werror=delete-incomplete -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DLINUX -DLOONGARCH -pipe -p -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.linux_mips b/builds/posix/prefix.linux_mips index 713466509c..c5b34b9a1e 100644 --- a/builds/posix/prefix.linux_mips +++ b/builds/posix/prefix.linux_mips @@ -1,6 +1,6 @@ COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -pipe -MMD -fPIC -fmessage-length=0 OPTIMIZE_FLAGS=-O3 -fno-omit-frame-pointer -fno-builtin -WARN_FLAGS=-Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-non-virtual-dtor +WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-non-virtual-dtor PROD_FLAGS=$(COMMON_FLAGS) $(OPTIMIZE_FLAGS) #DEV_FLAGS=-DUSE_VALGRIND -p $(COMMON_FLAGS) $(WARN_FLAGS) diff --git a/builds/posix/prefix.linux_mips64el b/builds/posix/prefix.linux_mips64el index eb16512b8b..f59664e0a9 100644 --- a/builds/posix/prefix.linux_mips64el +++ b/builds/posix/prefix.linux_mips64el @@ -21,7 +21,7 @@ #LD=@CXX@ #PROD_FLAGS=-ggdb -O3 -fno-omit-frame-pointer -DLINUX -pipe -MMD -fPIC -#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-switch +#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch PROD_FLAGS=-O3 -DLINUX -DMIPS64EL -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -DEV_FLAGS=-ggdb -DLINUX -DMIPS64EL -pipe -p -MMD -fPIC -Werror=delete-incomplete -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DLINUX -DMIPS64EL -pipe -p -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.linux_mipsel b/builds/posix/prefix.linux_mipsel index 26cdb2e39f..0252cb01bf 100644 --- a/builds/posix/prefix.linux_mipsel +++ b/builds/posix/prefix.linux_mipsel @@ -22,4 +22,4 @@ LD=@CXX@ # -fno-builtin is used because GCC 3.0-3.2.2 had bug with builtins expansion # you may remove it if engine is getting compiled with any other GCC version PROD_FLAGS=-ggdb -O3 -fno-omit-frame-pointer -DLINUX -pipe -MMD -fPIC -DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-switch -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.linux_powerpc b/builds/posix/prefix.linux_powerpc index 0ef22889ae..e160c00947 100644 --- a/builds/posix/prefix.linux_powerpc +++ b/builds/posix/prefix.linux_powerpc @@ -19,5 +19,5 @@ # 2 Oct 2002, Nickolay Samofatov - Major cleanup PROD_FLAGS=-ggdb -fno-omit-frame-pointer -fsigned-char -DLINUX -pipe -MMD -fPIC -fmessage-length=0 -DLINUX -DPowerPC -DPPC -O3 -DEV_FLAGS=-ggdb -O0 -DLINUX -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -fmessage-length=0 -fsigned-char -DLINUX -DPowerPC -DPPC -Wno-non-virtual-dtor -#DEV_FLAGS=-DUSE_VALGRIND -ggdb -O0 -DLINUX -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -fmessage-length=0 -DLINUX -DPowerPC -DPPC -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -O0 -DLINUX -pipe -MMD -p -fPIC -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -fmessage-length=0 -fsigned-char -DLINUX -DPowerPC -DPPC -Wno-non-virtual-dtor +#DEV_FLAGS=-DUSE_VALGRIND -ggdb -O0 -DLINUX -pipe -MMD -p -fPIC -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -fmessage-length=0 -DLINUX -DPowerPC -DPPC -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.linux_powerpc64 b/builds/posix/prefix.linux_powerpc64 index b0056b8a66..6406131c30 100644 --- a/builds/posix/prefix.linux_powerpc64 +++ b/builds/posix/prefix.linux_powerpc64 @@ -21,7 +21,7 @@ #LD=@CXX@ #PROD_FLAGS=-ggdb -O3 -fno-omit-frame-pointer -DLINUX -pipe -MMD -fPIC -#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-switch +#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch PROD_FLAGS=-O3 -DLINUX -DPPC64 -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -DEV_FLAGS=-ggdb -DLINUX -DPPC64 -pipe -p -MMD -fPIC -Werror=delete-incomplete -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DLINUX -DPPC64 -pipe -p -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.linux_powerpc64el b/builds/posix/prefix.linux_powerpc64el index e3391f7b50..f65668ab0f 100644 --- a/builds/posix/prefix.linux_powerpc64el +++ b/builds/posix/prefix.linux_powerpc64el @@ -21,7 +21,7 @@ #LD=@CXX@ #PROD_FLAGS=-ggdb -O3 -fno-omit-frame-pointer -DLINUX -pipe -MMD -fPIC -#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-switch +#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch PROD_FLAGS=-O3 -DLINUX -DPPC64EL -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -DEV_FLAGS=-ggdb -DLINUX -DPPC64EL -pipe -p -MMD -fPIC -Werror=delete-incomplete -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DLINUX -DPPC64EL -pipe -p -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.linux_riscv64 b/builds/posix/prefix.linux_riscv64 index 7fbf50af23..17e67e85bb 100644 --- a/builds/posix/prefix.linux_riscv64 +++ b/builds/posix/prefix.linux_riscv64 @@ -22,7 +22,7 @@ #LD=@CXX@ #PROD_FLAGS=-ggdb -O3 -fno-omit-frame-pointer -DLINUX -pipe -MMD -fPIC -#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-switch +#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch PROD_FLAGS=-O3 -DLINUX -DRISCV64 -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -std=gnu++03 -fno-delete-null-pointer-checks -DEV_FLAGS=-ggdb -DLINUX -DRISCV64 -pipe -p -MMD -fPIC -Werror=delete-incomplete -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DLINUX -DRISCV64 -pipe -p -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.linux_s390x b/builds/posix/prefix.linux_s390x index fd08ab9117..cb0992bb41 100644 --- a/builds/posix/prefix.linux_s390x +++ b/builds/posix/prefix.linux_s390x @@ -20,7 +20,7 @@ COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -pipe -MMD -fPIC -fmessage-length=0 -fsigned-char -Wno-invalid-offsetof OPTIMIZE_FLAGS=-O3 -fno-omit-frame-pointer -fno-builtin -WARN_FLAGS=-Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-non-virtual-dtor +WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-non-virtual-dtor PROD_FLAGS=$(COMMON_FLAGS) $(OPTIMIZE_FLAGS) #DEV_FLAGS=-DUSE_VALGRIND -p $(COMMON_FLAGS) $(WARN_FLAGS) diff --git a/builds/posix/prefix.linux_sparc32 b/builds/posix/prefix.linux_sparc32 index fcd2ec88c2..dc6b989e3c 100644 --- a/builds/posix/prefix.linux_sparc32 +++ b/builds/posix/prefix.linux_sparc32 @@ -20,4 +20,4 @@ COMMON_FLAGS=-DLINUX -pipe -MMD -fPIC -Dsparc -DFB_SEND_FLAGS=MSG_NOSIGNAL PROD_FLAGS=-ggdb -mcpu=ultrasparc -mtune=ultrasparc -O3 $(COMMON_FLAGS) -DEV_FLAGS=-ggdb -p -Werror=delete-incomplete -Wall -Wno-switch $(COMMON_FLAGS) -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -p -Wall -Wno-switch $(COMMON_FLAGS) -Wno-non-virtual-dtor diff --git a/builds/posix/prefix.mingw b/builds/posix/prefix.mingw index b4ca1da215..a73256bf9c 100644 --- a/builds/posix/prefix.mingw +++ b/builds/posix/prefix.mingw @@ -20,8 +20,8 @@ # # -Wno-unused-variable is used due to unused gpre generated variables -PROD_FLAGS=-O2 -DMINGW -Werror=delete-incomplete -Wall -Wshadow -Wundef -Wno-long-long -Wno-unused-variable -Wno-sign-compare -Wno-parentheses -Wno-switch -fmessage-length=0 -Dlint -DWIN32_LEAN_AND_MEAN -MMD -mthreads -Wno-non-virtual-dtor -DEV_FLAGS=-ggdb -DMINGW -Werror=delete-incomplete -Wall -Wshadow -Wundef -Wno-long-long -Wno-unused-variable -Wno-sign-compare -Wno-parentheses -Wno-switch -fmessage-length=0 -Dlint -DWIN32_LEAN_AND_MEAN -MMD -mthreads -Wno-non-virtual-dtor +PROD_FLAGS=-O2 -DMINGW -Wall -Wshadow -Wundef -Wno-long-long -Wno-unused-variable -Wno-sign-compare -Wno-parentheses -Wno-switch -fmessage-length=0 -Dlint -DWIN32_LEAN_AND_MEAN -MMD -mthreads -Wno-non-virtual-dtor +DEV_FLAGS=-ggdb -DMINGW -Wall -Wshadow -Wundef -Wno-long-long -Wno-unused-variable -Wno-sign-compare -Wno-parentheses -Wno-switch -fmessage-length=0 -Dlint -DWIN32_LEAN_AND_MEAN -MMD -mthreads -Wno-non-virtual-dtor PLATFORM_PATH=os/win32 diff --git a/builds/posix/prefix.netbsd b/builds/posix/prefix.netbsd index 9d7350d700..b73aeca727 100644 --- a/builds/posix/prefix.netbsd +++ b/builds/posix/prefix.netbsd @@ -21,7 +21,7 @@ EXE_LINK_OPTIONS=-Wl,--rpath -Wl,@prefix@/lib PROD_FLAGS=-O -fno-builtin -pipe -MMD -fPIC -DEV_FLAGS=-g -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-non-virtual-dtor +DEV_FLAGS=-g -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch -Wno-parentheses -Wno-non-virtual-dtor LIB_LINK_OPTIONS= -shared LIB_PLATFORM_RPATH= -Wl,--rpath -Wl,$(1) diff --git a/builds/posix/prefix.solaris-64gcc b/builds/posix/prefix.solaris-64gcc index c08e0ac40b..76a3bbcb52 100644 --- a/builds/posix/prefix.solaris-64gcc +++ b/builds/posix/prefix.solaris-64gcc @@ -17,7 +17,7 @@ CFLAGS_COMMON= -DSOLARIS -DBSD_COMP -Dsparc # compile flags for GCC compiler COMMON_GCC_FLAGS= -MMD -fPIC -m64 -D__sparcv9 -mptr64 -mstack-bias -mno-v8plus -mcpu=v9 -DEBUG_GCC_FLAGS= -gstabs+ -g3 -Werror=delete-incomplete -Wall -Wno-switch -Wcast-align -Wno-non-virtual-dtor +DEBUG_GCC_FLAGS= -gstabs+ -g3 -Wall -Wno-switch -Wcast-align -Wno-non-virtual-dtor #switch to dbx accoding SF gdb 64 bits mailfunction PROD_GCC_FLAGS= -mcpu=ultrasparc -mtune=ultrasparc -O3 diff --git a/builds/posix/prefix.solx86gcc b/builds/posix/prefix.solx86gcc index e0e82d95ee..87bbfbb4a2 100644 --- a/builds/posix/prefix.solx86gcc +++ b/builds/posix/prefix.solx86gcc @@ -21,7 +21,7 @@ # # Start of file prefix.solaris X 86 : $(VERSION) $(PLATFORM) -WARNINGS=-Werror=delete-incomplete -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wwrite-strings -Wno-non-virtual-dtor +WARNINGS=-Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wwrite-strings -Wno-non-virtual-dtor COMM_SOLX_FLAGS:=-DSOLARIS -DSOLX86 -DBSD_COMP -fno-omit-frame-pointer -fmessage-length=0 -MMD -fPIC SFIO=@SFIO_DIR@ diff --git a/builds/posix/prefix.solx86gcc_64 b/builds/posix/prefix.solx86gcc_64 index 1178dac5f3..ed70b9f8f4 100644 --- a/builds/posix/prefix.solx86gcc_64 +++ b/builds/posix/prefix.solx86gcc_64 @@ -29,7 +29,7 @@ # make sure that make.defaults uses -lncurses instead of -lcurses for # LINK_LIBS and SO_LINK_LIBS e.g. -lncurses -leditline -WARNINGS=-Werror=delete-incomplete -Wall -Wno-switch -Wno-parentheses -Wno-unused-variable -Wno-non-virtual-dtor +WARNINGS=-Wall -Wno-switch -Wno-parentheses -Wno-unused-variable -Wno-non-virtual-dtor COMM_SOLX_FLAGS:=-DSOLARIS -DBSD_COMP -DAMD64 -pipe -fmessage-length=0 -MMD -fPIC SFIO=@SFIO_DIR@