Tools: waf: avoid trigraph warnings by adding -Wno-trigraphs

This commit is contained in:
Peter Barker 2017-09-06 10:54:53 +10:00 committed by Peter Barker
parent 794c960c7e
commit fa68738726
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,7 @@ class Board:
'-Wno-unused-parameter',
'-Wno-redundant-decls',
'-Wno-unknown-pragmas',
'-Wno-trigraphs',
]
if 'clang' in cfg.env.COMPILER_CC:
@ -102,6 +103,7 @@ class Board:
env.CFLAGS += [
'-g',
'-O0',
'-Wno-trigraphs',
]
env.CXXFLAGS += [
@ -130,6 +132,7 @@ class Board:
'-Werror=init-self',
'-Werror=switch',
'-Wfatal-errors',
'-Wno-trigraphs',
]
if 'clang++' in cfg.env.COMPILER_CXX: