浏览代码

Abort compilation on missing return values (CGG/clang)

bruvzg 7 年之前
父节点
当前提交
5ec09455ed
共有 1 个文件被更改,包括 1 次插入0 次删除
  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']