From 5bdf43407a630b6959afe1455fc74755843f3e4b Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 3 Jun 2019 14:43:24 -0700 Subject: [PATCH] configure: enable -Wmissing-declarations for more files avoid using it with third_party/libyuv as that still requires some work. BUG=webm:1584 Change-Id: Ib73136b22c89d927b112364e19d725c51768bbb7 --- configure | 6 ++---- examples.mk | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 5e7c50ad3..0fd680816 100755 --- a/configure +++ b/configure @@ -620,6 +620,8 @@ process_toolchain() { check_add_cflags -Wcast-qual check_add_cflags -Wvla check_add_cflags -Wimplicit-function-declaration + check_add_cflags -Wmissing-declarations + check_add_cflags -Wmissing-prototypes check_add_cflags -Wuninitialized check_add_cflags -Wunused check_add_cflags -Wextra @@ -628,10 +630,6 @@ process_toolchain() { check_cflags -Wundef && add_cflags_only -Wundef check_cflags -Wframe-larger-than=52000 && \ add_cflags_only -Wframe-larger-than=52000 - check_cflags -Wmissing-declarations && \ - add_cflags_only -Wmissing-declarations - check_cflags -Wmissing-prototypes && \ - add_cflags_only -Wmissing-prototypes if enabled mips || [ -z "${INLINE}" ]; then enabled extra_warnings || check_add_cflags -Wno-unused-function fi diff --git a/examples.mk b/examples.mk index e0da4caa2..208708af7 100644 --- a/examples.mk +++ b/examples.mk @@ -78,6 +78,8 @@ vpxdec.SRCS += y4menc.c y4menc.h ifeq ($(CONFIG_LIBYUV),yes) vpxdec.SRCS += $(LIBYUV_SRCS) $(BUILD_PFX)third_party/libyuv/%.cc.o: CXXFLAGS += -Wno-unused-parameter + $(BUILD_PFX)third_party/libyuv/%.cc.o: CXXFLAGS += -Wno-missing-declarations + $(BUILD_PFX)third_party/libyuv/%.cc.o: CXXFLAGS += -Wno-missing-prototypes endif ifeq ($(CONFIG_WEBM_IO),yes) vpxdec.SRCS += $(LIBWEBM_COMMON_SRCS) -- 2.40.0