Fix build clang 3.9+ (#458)
* clang 4.0: fix ordered comparison between pointer and zero * clang 4.0: fix taking address of packed member Maybe someday someone will properly fix it * clang 3.9: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior Someday proper fix?
This commit is contained in:
committed by
Vincent Herbet
parent
feba821306
commit
604ecbd31e
@ -208,6 +208,10 @@ class AMXXConfig(object):
|
||||
cxx.cflags += ['-Wno-sometimes-uninitialized']
|
||||
if builder.target_platform == 'linux' and cxx.version >= '3.6':
|
||||
cxx.cxxflags += ['-Wno-inconsistent-missing-override']
|
||||
if builder.target_platform == 'linux' and cxx.version >= '3.9':
|
||||
cxx.cxxflags += ['-Wno-varargs']
|
||||
if builder.target_platform == 'linux' and cxx.version >= '4.0':
|
||||
cxx.cxxflags += ['-Wno-address-of-packed-member']
|
||||
|
||||
if have_gcc:
|
||||
cxx.cflags += ['-Wno-parentheses']
|
||||
|
Reference in New Issue
Block a user