mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 02:52:28 -05:00
SCons: Disable -Werror=return-type
for GCC 12+ due to regression
Works around and thus closes #58747.
Supersedes #60613.
(cherry picked from commit 01f8f17b67
)
This commit is contained in:
parent
f7930560c3
commit
916f3d7c3c
1 changed files with 6 additions and 2 deletions
|
@ -482,7 +482,11 @@ if selected_platform in platform_list:
|
|||
|
||||
if env["werror"]:
|
||||
env.Append(CCFLAGS=["-Werror"])
|
||||
else: # always enable those errors
|
||||
if methods.using_gcc(env) and version[0] >= 12: # False positives in our error macros, see GH-58747.
|
||||
env.Append(CCFLAGS=["-Wno-error=return-type"])
|
||||
else: # Always enable those errors.
|
||||
# False positives in our error macros, see GH-58747.
|
||||
if not (methods.using_gcc(env) and version[0] >= 12):
|
||||
env.Append(CCFLAGS=["-Werror=return-type"])
|
||||
|
||||
if hasattr(detect, "get_program_suffix"):
|
||||
|
|
Loading…
Reference in a new issue