[Skiboot] [PATCH 14/15] makefile: Supress Werror on clang
    Oliver O'Halloran 
    oohall at gmail.com
       
    Fri Jun 12 12:24:51 AEST 2020
    
    
  
We get a lot more warnings from clang so disable Werror for now so it
fails to compile elsewhere.
Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
---
 Makefile.main | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/Makefile.main b/Makefile.main
index ec69b2d2c882..c429bf1dfb7d 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -43,6 +43,11 @@ CWARNS += -Werror
 endif
 endif
 
+# clang tends to emit more warnings so stop those breaking the build for now
+ifeq ($(cc-name),clang)
+CWARNS += -Wno-error
+endif
+
 # Host tools and options
 HOSTCC=gcc
 HOSTEND=$(shell uname -m | sed -e 's/^i.*86$$/LITTLE/' -e 's/^x86.*/LITTLE/' -e 's/^ppc64le/LITTLE/' -e 's/^ppc.*/BIG/')
-- 
2.26.2
    
    
More information about the Skiboot
mailing list