From ccf5301c37dd785d4ad3b86f9b5f30ef2e239d1b Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Thu, 28 Sep 2017 10:39:46 -0700 Subject: [PATCH] scoutfs: add -Werror for build errors We insist on a warning free build but it's up to human diligence to discover and address warnings. We've also caught errors when compilers in automated testing saw problems that the compilers in developer environments didn't. That is, a human only could have noticed by investigating the output from successful test runs. Let's put some weight behind our promise of a warning free build and turn gcc warnings into errors. Signed-off-by: Zach Brown --- kmod/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kmod/Makefile b/kmod/Makefile index bb162626..e8e45a4a 100644 --- a/kmod/Makefile +++ b/kmod/Makefile @@ -17,7 +17,8 @@ SCOUTFS_GIT_DESCRIBE := \ echo not-in-a-git-repository) SCOUTFS_ARGS := SCOUTFS_GIT_DESCRIBE=$(SCOUTFS_GIT_DESCRIBE) \ - CONFIG_SCOUTFS_FS=m -C $(SK_KSRC) M=$(CURDIR)/src + CONFIG_SCOUTFS_FS=m -C $(SK_KSRC) M=$(CURDIR)/src \ + EXTRA_CFLAGS=-Werror all: module