From: Johann Date: Fri, 21 Dec 2018 21:44:07 +0000 (-0800) Subject: add -Wmissing-declarations X-Git-Tag: v1.8.1~295 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=219ea62d00e68de9267c266913d3205a1530b58a;p=libvpx add -Wmissing-declarations This is useful for catching functions which should be static and instances where the relevant rtcd file was not included. BUG=webm:1584 Change-Id: Ied395847a664eedce59e8ed5180bd16d059ab0ac --- diff --git a/configure b/configure index 6204f10b6..c8f1d35ed 100755 --- a/configure +++ b/configure @@ -620,6 +620,8 @@ 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 if enabled mips || [ -z "${INLINE}" ]; then enabled extra_warnings || check_add_cflags -Wno-unused-function fi