Browse Source

Merge pull request #16914 from bruvzg/missing_return_error

[Build] Abort compilation on missing return values (CGG/clang)
Rémi Verschelde 7 years ago
parent
commit
79a225ac2a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      SConstruct

+ 1 - 0
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']