summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2017-04-03 11:55:11 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2017-04-03 11:55:11 -0400
commitf1e2443256f28fd84e721e028cff1a087903857c (patch)
tree414f7b6dce88763ad326e7fb2045ef3ecd8c9626
parentc54a329b8166baf052935ef34fe19b7162bd2e80 (diff)
downloadlibnice-f1e2443256f28fd84e721e028cff1a087903857c.tar.gz
configure: Make sure flag test really fails on unknown flag
clang on recent macOS seems to only emit a warning on unknown flags which makes this test fail and then when using Werror, it makes the compiler test fail too.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 93bf1e2..7d16758 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,7 +108,7 @@ AC_ARG_ENABLE(compile-warnings,
[enable_compile_warnings="error"])])
AC_DEFUN([NICE_ADD_FLAG],
- AS_COMPILER_FLAG([$1], LIBNICE_CFLAGS="$LIBNICE_CFLAGS $1", [])
+ AS_COMPILER_FLAG([-Werror $1], LIBNICE_CFLAGS="$LIBNICE_CFLAGS $1", [])
)
NICE_ADD_FLAG([-fno-strict-aliasing])