diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2017-04-03 11:55:11 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2017-04-03 11:55:11 -0400 |
commit | f1e2443256f28fd84e721e028cff1a087903857c (patch) | |
tree | 414f7b6dce88763ad326e7fb2045ef3ecd8c9626 /configure.ac | |
parent | c54a329b8166baf052935ef34fe19b7162bd2e80 (diff) | |
download | libnice-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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
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]) |