From 5ec09455ed04a8e0c11c97c72833c457c307e1c1 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) --- SConstruct | 1 + 1 file changed, 1 insertion(+) diff --git a/SConstruct b/SConstruct index 14f576c5954..c3205137864 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']