]> granicus.if.org Git - libvpx/commitdiff
configure: enable -Wunused-function by default
authorJames Zern <jzern@google.com>
Tue, 2 Feb 2016 04:52:16 +0000 (20:52 -0800)
committerJames Zern <jzern@google.com>
Thu, 4 Feb 2016 07:07:20 +0000 (23:07 -0800)
when INLINE is defined and mips is not being targeted. otherwise keep
the old --enable-extra-warnings behavior

Change-Id: Iba576edbe5fca03efa56ce99eee11f9cafc573ad

configure

index 5fbd2d0028d48f4c3a150102d3e119faa81132b1..095cddf2dbee8ac68f91061f6cab76fb6b50fda3 100755 (executable)
--- 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