From df7d60a9d3c0290cbfb7ee3f512845c21589f71a Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 22 Feb 2018 10:00:38 +0200 Subject: [PATCH] Abort compilation on missing return values (CGG/clang) (cherry picked from commit 5ec09455ed04a8e0c11c97c72833c457c307e1c1) --- SConstruct | 1 + 1 file changed, 1 insertion(+) diff --git a/SConstruct b/SConstruct index d01ccb8597a..1104e92447e 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']