diff mbox series

[14/15] makefile: Supress Werror on clang

Message ID 20200612022452.371685-15-oohall@gmail.com
State Accepted
Headers show
Series [01/15] test/qemu: Update command line arguments | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (fe70fbb78d33abea788a3221bc409a7c50c019c3)

Commit Message

Oliver O'Halloran June 12, 2020, 2:24 a.m. UTC
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@gmail.com>
---
 Makefile.main | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

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/')