btrfs-progs: build: enable -Wmissing-prototypes
With all the known warnings fixed, we can enable -Wmissing-prototypes and prevent such warnings from happening. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
b3327119ec
commit
7e2b9cc383
3
Makefile
3
Makefile
|
@ -84,7 +84,8 @@ DISABLE_WARNING_FLAGS := $(call cc-disable-warning, format-truncation) \
|
||||||
$(call cc-disable-warning, address-of-packed-member)
|
$(call cc-disable-warning, address-of-packed-member)
|
||||||
|
|
||||||
# Warnings that we want by default
|
# Warnings that we want by default
|
||||||
ENABLE_WARNING_FLAGS := $(call cc-option, -Wimplicit-fallthrough)
|
ENABLE_WARNING_FLAGS := $(call cc-option, -Wimplicit-fallthrough) \
|
||||||
|
$(call cc-option, -Wmissing-prototypes)
|
||||||
|
|
||||||
# Common build flags
|
# Common build flags
|
||||||
CFLAGS = $(SUBST_CFLAGS) \
|
CFLAGS = $(SUBST_CFLAGS) \
|
||||||
|
|
Loading…
Reference in New Issue