build: downgrade keyword-macro from an error to a warning with clang

refs #3235

Change-Id: I48c95d8dd3e767b551618f7ec7fffc33fbd30fd6
This commit is contained in:
Junxiao Shi authored and Junxiao Shi committed 2015-10-05 16:42:41 -07:00
1 parent d7c9636078
commit 747b67d38f
1 file changed
+3
+3
View File
@@ -130,6 +130,8 @@ class GccFlags(GccBasicFlags):
flags['CXXFLAGS'] += ['-std=c++0x']
else:
flags['CXXFLAGS'] += ['-std=c++11']
if version < (4, 8, 0):
flags['DEFINES'] += ['_GLIBCXX_USE_NANOSLEEP'] # Bug #2499
return flags
def getDebugFlags(self, conf):
@@ -159,6 +161,7 @@ class ClangFlags(GccBasicFlags):
'-Wno-unused-local-typedef', # Bugs #2657 and #3209
'-Wno-error=unneeded-internal-declaration', # Bug #1588
'-Wno-error=deprecated-register',
'-Wno-error=keyword-macro', # Bug #3235
]
return flags