btrfs-progs: build: turn on more compiler warnings and use -Wall

In converting some of our helpers to take new args I would miss some
locations because we don't stop on any warning, and I would miss the
warning in the scrollback.

Note: the Centos7 build is not yet warning-free so we can't enable
-Werror by default. It can be used as:

  make EXTRA_CFLAGS=-Werror

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
[ add note ]
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Josef Bacik 2022-11-23 17:37:09 -05:00 committed by David Sterba
parent ff964ba6ae
commit 66d6d56f04

View File

@ -94,6 +94,8 @@ CFLAGS = $(SUBST_CFLAGS) \
-D_XOPEN_SOURCE=700 \
-fno-strict-aliasing \
-fPIC \
-Wall \
-Wunused-but-set-parameter \
-I$(TOPDIR) \
$(CRYPTO_CFLAGS) \
-DCOMPRESSION_LZO=$(COMPRESSION_LZO) \