mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
CONFIG: enable use of stricter deprecation warnings
- selected with '+strict' in WM_COMPILE_CONTROL or 'wmake -strict', it enables the FOAM_DEPRECATED_STRICT() macro, which can be used to mark methods that are implicitly deprecated, but are not yet marked as full deprecated (eg, API modification is too recent, generates too many warnings). Can be considered a developer option.
This commit is contained in:
@ -32,6 +32,11 @@ else
|
||||
COMPILER_VERSION :=
|
||||
endif
|
||||
|
||||
# Enable additional compile-time checks
|
||||
ifneq (,$(findstring +strict,$(WM_COMPILE_CONTROL)))
|
||||
GFLAGS += -DFOAM_COMPILE_STRICT
|
||||
endif
|
||||
|
||||
# Default compilation is 'Opt' - never permit an empty value
|
||||
ifeq (,$(strip $(WM_COMPILE_OPTION)))
|
||||
WM_COMPILE_OPTION := Opt
|
||||
|
||||
Reference in New Issue
Block a user