From: James Zern Date: Tue, 2 Feb 2016 04:52:16 +0000 (-0800) Subject: configure: enable -Wunused-function by default X-Git-Tag: v1.6.0~380^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=771d276b2787491dcae4164d1497e5ae14d50dfc;p=libvpx configure: enable -Wunused-function by default when INLINE is defined and mips is not being targeted. otherwise keep the old --enable-extra-warnings behavior Change-Id: Iba576edbe5fca03efa56ce99eee11f9cafc573ad --- diff --git a/configure b/configure index 5fbd2d002..095cddf2d 100755 --- a/configure +++ b/configure @@ -600,7 +600,11 @@ process_toolchain() { ;; *) check_add_cflags -Wunused-but-set-variable ;; esac - enabled extra_warnings || check_add_cflags -Wno-unused-function + if enabled mips || [ -z "${INLINE}" ]; then + enabled extra_warnings || check_add_cflags -Wno-unused-function + else + check_add_cflags -Wunused-function + fi fi if enabled icc; then