build: Adding -Werror during compiler flag detection phase
This way all warnings generated during the detection (e.g., `argument unused` from clang) will not cause problems later. Change-Id: Id47a29f94316220e979412c862096a620e15a984 Refs: #1539
This commit is contained in:
1 parent
dc9c8117ee
commit
d35176cf0e
1 file changed
+1
-1
@@ -54,7 +54,7 @@ def add_supported_cxxflags(self, cxxflags):
|
||||
|
||||
supportedFlags = []
|
||||
for flag in cxxflags:
|
||||
if self.check_cxx(cxxflags=[flag], mandatory=False):
|
||||
if self.check_cxx(cxxflags=['-Werror', flag], mandatory=False):
|
||||
supportedFlags += [flag]
|
||||
|
||||
self.end_msg(' '.join(supportedFlags))
|
||||
|
||||
Reference in new issue
Block a user