ref: 5bdf43407a630b6959afe1455fc74755843f3e4b
parent: ca440c0a5fbe336f5520ff9506272974d3006c0c
author: James Zern <jzern@google.com>
date: Mon Jun 3 10:43:24 EDT 2019
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
--- a/configure
+++ b/configure
@@ -620,6 +620,8 @@
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 @@
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
--- a/examples.mk
+++ b/examples.mk
@@ -78,6 +78,8 @@
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)