partial Revert of "Stricter compile options (#1132)"
This commit is contained in:
parent
8c118f2fbe
commit
a17cc28382
|
@ -37,19 +37,21 @@ endif
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = $(EXTRA_PARAMS) $(DEBUG_LEVEL_OPT) $(RFLAGS) -fomit-frame-pointer -falign-functions=16
|
USE_OPT = $(EXTRA_PARAMS) $(DEBUG_LEVEL_OPT) $(RFLAGS) -Wno-error=implicit-fallthrough -Wno-error=bool-operation -fomit-frame-pointer -falign-functions=16 -Werror=type-limits -Wno-error=strict-aliasing -Wno-error=attributes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
USE_OPT += $(RUSEFI_OPT)
|
USE_OPT += $(RUSEFI_OPT)
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
ifeq ($(USE_COPT),)
|
ifeq ($(USE_COPT),)
|
||||||
USE_COPT = -fgnu89-inline -std=gnu99 -Wno-error=implicit-fallthrough
|
USE_COPT = -fgnu89-inline -std=gnu99 -Werror-implicit-function-declaration
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C++ specific options here (added to USE_OPT).
|
# C++ specific options here (added to USE_OPT).
|
||||||
ifeq ($(USE_CPPOPT),)
|
ifeq ($(USE_CPPOPT),)
|
||||||
USE_CPPOPT = -std=c++17 -Wno-register -fno-rtti -fno-threadsafe-statics -fno-exceptions -fno-use-cxa-atexit
|
# constexpr float expf_taylor_impl probably needs just c++14 but why not go with 17?
|
||||||
|
USE_CPPOPT = -std=c++17 -Wno-register -fno-rtti -fno-threadsafe-statics -fno-exceptions -fno-use-cxa-atexit -Werror=write-strings -Werror=type-limits
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Enable this if you want the linker to remove unused code and data
|
# Enable this if you want the linker to remove unused code and data
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Warnings-as-errors...
|
RUSEFI_OPT=-Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Werror=missing-field-initializers
|
||||||
RUSEFI_OPT = -Werror
|
|
||||||
|
|
||||||
# ...except these few
|
RUSEFI_OPT+=-Wno-error=missing-prototypes
|
||||||
RUSEFI_OPT += -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter
|
|
||||||
|
RUSEFI_OPT+=-Werror=switch
|
Loading…
Reference in New Issue