summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2019-03-04 16:55:10 -0800
committerJohann <johannkoenig@google.com>2019-03-04 18:02:09 -0800
commit4b357bd15ba6a45687a4b01b14bca46e6cbe6cd2 (patch)
tree90c141930bd5666f1d9ce7f77aa69e44df87da1e /configure
parentaba995832f2069a16180c02f4d97caa9894f9328 (diff)
downloadlibvpx-4b357bd15ba6a45687a4b01b14bca46e6cbe6cd2.tar
libvpx-4b357bd15ba6a45687a4b01b14bca46e6cbe6cd2.tar.gz
libvpx-4b357bd15ba6a45687a4b01b14bca46e6cbe6cd2.tar.bz2
libvpx-4b357bd15ba6a45687a4b01b14bca46e6cbe6cd2.zip
add -Wmissing-prototypes
clang treats -Wmissing-declarations differently than gcc. This provides similar coverage for clang. Fix vpx_clear_system_state() warning on 32bit builds: note: this declaration is not a prototype; add 'void' to make it a prototype for a zero-parameter function Change-Id: I5a424bc38d47c0a3dc751d65c1efea5733907785
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index b5096723b..2174544c3 100755
--- a/configure
+++ b/configure
@@ -627,6 +627,8 @@ process_toolchain() {
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