Skip to content
Snippets Groups Projects
Commit 4c6c4a67 authored by Tom Finegan's avatar Tom Finegan
Browse files

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
parent d1aeef94
No related branches found
No related tags found
No related merge requests found
...@@ -327,7 +327,7 @@ EOF ...@@ -327,7 +327,7 @@ EOF
check_cflags() { check_cflags() {
log check_cflags "$@" log check_cflags "$@"
check_cc "$@" <<EOF check_cc -Werror "$@" <<EOF
int x; int x;
EOF EOF
} }
...@@ -341,7 +341,7 @@ check_cxxflags() { ...@@ -341,7 +341,7 @@ check_cxxflags() {
int x; int x;
EOF EOF
;; ;;
*) check_cxx "$@" <<EOF *) check_cxx -Werror "$@" <<EOF
int x; int x;
EOF EOF
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment