]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
Enforce zero warnings
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 18 Jun 2016 10:18:58 +0000 (12:18 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Sun, 26 Jun 2016 07:16:27 +0000 (09:16 +0200)
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 <jan.kiszka@siemens.com>
Kbuild
tools/Makefile

diff --git a/Kbuild b/Kbuild
index 37c652919155f943636365f8f7b6e353220189c0..901317918b5b298c7629a83603d84be3bf55d866 100644 (file)
--- 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
index 64b10640db496e2d816041954dbfd6036176fd22..6975a76cb69b2fd49a0cf3a49613507bf9df4c11 100644 (file)
@@ -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