Add -Wno-array-bounds for TF2 extension to avoid GCC bugged warning (msvc and Clang fine).

This commit is contained in:
Nicholas Hastings 2012-12-23 22:06:52 -05:00
parent 942b1d2591
commit eaf441c226

View File

@ -5,6 +5,8 @@ sdk = SM.sdkInfo['ep2v']
compiler = SM.DefaultHL2Compiler('extensions/tf2', 'ep2v')
if compiler.cc.name == 'gcc' or compiler.cc.name == 'clang':
compiler['CFLAGS'].append('-Wno-parentheses')
if compiler.cc.name == 'gcc':
compiler['CFLAGS'].append('-Wno-array-bounds')
name = 'game.tf2.ext.' + sdk['ext']
extension = AMBuild.AddJob(name)