From d35176cf0eea676111806ef3dbfc970f5a4dde5c Mon Sep 17 00:00:00 2001 From: Alexander Afanasyev Date: Fri, 25 Apr 2014 19:09:41 -0700 Subject: [PATCH] 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 --- .waf-tools/default-compiler-flags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.waf-tools/default-compiler-flags.py b/.waf-tools/default-compiler-flags.py index 4e9548c6..741791e3 100644 --- a/.waf-tools/default-compiler-flags.py +++ b/.waf-tools/default-compiler-flags.py @@ -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))