From: Ben Hutchings Date: Tue, 14 Jun 2016 20:26:01 +0000 (+0100) Subject: liblockdep: Enable -Wall by default X-Git-Tag: archive/raspbian/4.9.51-1+rpi1~8^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=44fdae7ff697a5d93e155a883058ee00b085ae83;p=linux-4.9.git liblockdep: Enable -Wall by default Regressions in liblockdep may be missed because it doesn't enable warnings. Adding -Wall immediately introduces a lot of warnings, but those will be fixed by the following commits. Signed-off-by: Ben Hutchings Gbp-Pq: Topic bugfix/all Gbp-Pq: Name liblockdep-enable-wall-by-default.patch --- diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile index d9cc6491034e..eb470e92208f 100644 --- a/tools/lib/lockdep/Makefile +++ b/tools/lib/lockdep/Makefile @@ -79,6 +79,7 @@ INCLUDES = -I. -I./uinclude -I./include -I../../include $(CONFIG_INCLUDES) # Set compile option CFLAGS if not set elsewhere CFLAGS ?= -g -DCONFIG_LOCKDEP -DCONFIG_STACKTRACE -DCONFIG_PROVE_LOCKING -DBITS_PER_LONG=__WORDSIZE -DLIBLOCKDEP_VERSION='"$(LIBLOCKDEP_VERSION)"' -rdynamic -O0 -g CFLAGS += -fPIC +CFLAGS += -Wall override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ)