From: Jan Kiszka Date: Sat, 18 Jun 2016 10:18:58 +0000 (+0200) Subject: Enforce zero warnings X-Git-Url: http://rtime.felk.cvut.cz/gitweb/jailhouse.git/commitdiff_plain/cf123b368412c9d7f1efcb5a7d3e6f4f5ba990a5?ds=sidebyside Enforce zero warnings 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 --- 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