ref: 771d276b2787491dcae4164d1497e5ae14d50dfc
parent: f74e04cc62897c81ac6bd6cba08cf69a30e2568f
author: James Zern <[email protected]>
date: Mon Feb 1 15:52:16 EST 2016
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
--- a/configure
+++ b/configure
@@ -600,7 +600,11 @@
;;
*) 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