From: Jan Kiszka <[email protected]>

Break the build in case of warnings. Can still be temporarily
overwritten by appending EXTRA_CFLAGS=-Wno-error to a build.

Signed-off-by: Jan Kiszka <[email protected]>
---
 Kbuild         | 2 ++
 tools/Makefile | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Kbuild b/Kbuild
index 37c6529..9013179 100644
--- a/Kbuild
+++ b/Kbuild
@@ -13,6 +13,8 @@
 
 subdir-y := driver hypervisor configs inmates
 
+subdir-ccflags-y := -Werror
+
 # inmates build depends on generated config.mk of the hypervisor,
 # and the driver needs version.h from there
 $(obj)/inmates $(obj)/driver: $(obj)/hypervisor
diff --git a/tools/Makefile b/tools/Makefile
index 64b1064..6975a76 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -13,7 +13,7 @@
 CC = $(CROSS_COMPILE)gcc
 
 CFLAGS = -g -O3 -I../driver -DLIBEXECDIR=\"$(libexecdir)\" \
-       -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes \
+       -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Werror \
        -DJAILHOUSE_VERSION=\"$(shell cat ../VERSION)\" $(EXTRA_CFLAGS)
 
 TARGETS := jailhouse
-- 
2.1.4

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to