]> granicus.if.org Git - libvpx/commitdiff
configure: enable -Wmissing-declarations for more files
authorJames Zern <jzern@google.com>
Mon, 3 Jun 2019 21:43:24 +0000 (14:43 -0700)
committerJames Zern <jzern@google.com>
Tue, 4 Jun 2019 00:20:35 +0000 (17:20 -0700)
avoid using it with third_party/libyuv as that still requires some work.

BUG=webm:1584

Change-Id: Ib73136b22c89d927b112364e19d725c51768bbb7

configure
examples.mk

index 5e7c50ad3f36b9ce02ccb22e56724e29fe29684c..0fd680816461e4a170317ad27d66629ea5fcdabd 100755 (executable)
--- 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
index e0da4caa26ede23036a341b61780979cfd300aca..208708af7fb78e21ea6a40cea970cb23ba7bf34b 100644 (file)
@@ -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)