From b556a992c3adf892948106503f6572704d877cdb Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 6 Oct 2015 14:40:07 +0200 Subject: btrfs-progs: build: allow to build with various compiler warnings Copied from linux kernel, 'make W=1' will build with various additional warnings turned on. There are 3 levels, combinations are possible. The build is quite noisy, not all warnings need to be fixed. A specific warning can be turned on by 'make EXTRA_CFLAGS=-Wsomething'. Signed-off-by: David Sterba --- Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 514a76f..18ebc04 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,6 +1,8 @@ # Export all variables to sub-makes by default export +include Makefile.extrawarn + CC = @CC@ LN_S = @LN_S@ AR = @AR@ @@ -19,7 +21,7 @@ CFLAGS = @CFLAGS@ \ -DBTRFS_FLAT_INCLUDES \ -D_XOPEN_SOURCE=700 \ -fno-strict-aliasing \ - -fPIC $(EXTRA_CFLAGS) + -fPIC $(KBUILD_CFLAGS) $(EXTRA_CFLAGS) LDFLAGS = @LDFLAGS@ \ -rdynamic $(EXTRA_LDFLAGS) -- cgit v1.2.1