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:
Qu Wenruo 2023-05-03 14:03:43 +08:00 committed by David Sterba
parent b3327119ec
commit 7e2b9cc383
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ DISABLE_WARNING_FLAGS := $(call cc-disable-warning, format-truncation) \
$(call cc-disable-warning, address-of-packed-member)
# 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
CFLAGS = $(SUBST_CFLAGS) \