aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorbruvzg2018-02-22 10:00:38 +0200
committerHein-Pieter van Braam2018-03-28 22:21:33 +0200
commitdf7d60a9d3c0290cbfb7ee3f512845c21589f71a (patch)
tree9e0c67efa92606068e788a450989a612a8b87d9e /SConstruct
parentfe20a1e35b70d2d754c908dcee174bacaaf938db (diff)
downloadgodot-df7d60a9d3c0290cbfb7ee3f512845c21589f71a.tar.gz
godot-df7d60a9d3c0290cbfb7ee3f512845c21589f71a.tar.zst
godot-df7d60a9d3c0290cbfb7ee3f512845c21589f71a.zip
Abort compilation on missing return values (CGG/clang)
(cherry picked from commit 5ec09455ed04a8e0c11c97c72833c457c307e1c1)
Diffstat (limited to '')
-rw-r--r--SConstruct1
1 files changed, 1 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index d01ccb859..1104e9244 100644
--- a/SConstruct
+++ b/SConstruct
@@ -353,6 +353,7 @@ if selected_platform in platform_list:
env.Append(CCFLAGS=['-Wall', '-Wno-unused'])
else: # 'no'
env.Append(CCFLAGS=['-w'])
+ env.Append(CCFLAGS=['-Werror=return-type'])
#env['platform_libsuffix'] = env['LIBSUFFIX']