summaryrefslogtreecommitdiff
path: root/build/make/configure.sh
diff options
context:
space:
mode:
authorTom Finegan <tomfinegan@google.com>2014-03-06 14:54:49 -0800
committerTom Finegan <tomfinegan@google.com>2014-03-06 14:54:49 -0800
commit4c6c4a6756ca450bcbc27dd1de39b0f8ae18481b (patch)
tree146994e5df25680a99508b23bf8eea2a7b949f99 /build/make/configure.sh
parentd1aeef94a510ffcef8411954697a9fd7e113572d (diff)
downloadlibvpx-4c6c4a6756ca450bcbc27dd1de39b0f8ae18481b.tar
libvpx-4c6c4a6756ca450bcbc27dd1de39b0f8ae18481b.tar.gz
libvpx-4c6c4a6756ca450bcbc27dd1de39b0f8ae18481b.tar.bz2
libvpx-4c6c4a6756ca450bcbc27dd1de39b0f8ae18481b.zip
Avoid unknown warning warnings and fix -Werror on macosx.
clang on macosx does not support -Wunused-but-set-variable; adding the flag causes additional warnings about the flag. As a more generalized fix, use -Werror when checking compiler flag support in order to avoid using unsupported warning flags. Change-Id: I2529862e211f880d56491eac3b9fa90fff1aa5c3
Diffstat (limited to 'build/make/configure.sh')
-rwxr-xr-xbuild/make/configure.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh
index 449d1b9f8..b84b41830 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -327,7 +327,7 @@ EOF
check_cflags() {
log check_cflags "$@"
- check_cc "$@" <<EOF
+ check_cc -Werror "$@" <<EOF
int x;
EOF
}
@@ -341,7 +341,7 @@ check_cxxflags() {
int x;
EOF
;;
- *) check_cxx "$@" <<EOF
+ *) check_cxx -Werror "$@" <<EOF
int x;
EOF
;;