Merge pull request #16914 from bruvzg/missing_return_error

[Build] Abort compilation on missing return values (CGG/clang)
This commit is contained in:
Rémi Verschelde 2018-02-22 11:16:30 +01:00 committed by GitHub
commit 79a225ac2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -353,6 +353,7 @@ if selected_platform in platform_list:
env.Append(CCFLAGS=['-Wall', '-Wno-unused']) env.Append(CCFLAGS=['-Wall', '-Wno-unused'])
else: # 'no' else: # 'no'
env.Append(CCFLAGS=['-w']) env.Append(CCFLAGS=['-w'])
env.Append(CCFLAGS=['-Werror=return-type'])
#env['platform_libsuffix'] = env['LIBSUFFIX'] #env['platform_libsuffix'] = env['LIBSUFFIX']