浏览代码

only use -Werror flags with gcc 4.2.x and 4.3.x.

could use a better test here though.
tags/7.8-rc1
Alan Hourihane 15 年前
父节点
当前提交
1019f0de11
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8
    2
      scons/gallium.py

+ 8
- 2
scons/gallium.py 查看文件

@@ -268,16 +268,22 @@ def generate(env):
ccflags += [
'-Wall',
'-Wmissing-field-initializers',
'-Werror=pointer-arith',
'-Wno-long-long',
'-ffast-math',
'-fmessage-length=0', # be nice to Eclipse
]
cflags += [
'-Werror=declaration-after-statement',
'-Wmissing-prototypes',
'-std=gnu99',
]
if env['CCVERSION'].startswith('4.2.') or
env['CCVERSION'].startswith('4.3.'):
ccflags += [
'-Werror=pointer-arith',
]
cflags += [
'-Werror=declaration-after-statement',
]
if msvc:
# See also:
# - http://msdn.microsoft.com/en-us/library/19z1t1wy.aspx

正在加载...
取消
保存