Commit 7747f6fa authored by Jan Včelák's avatar Jan Včelák 🚀 Committed by Gerrit Code Review

configure: test support of -fpredictive-commoning with -Werror

Clang compiler does not support this flag but emits a warning only,
so the option was used anyway.


Change-Id: I865551a5ac7b605123e0f9df0fc786a844d849ce
parent db3dc144
......@@ -150,7 +150,7 @@ AC_ARG_ENABLE([microseconds-log],
AS_HELP_STRING([--enable-microseconds-log], [enable microseconds in log messages [default=no]]),
AC_DEFINE([ENABLE_MICROSECONDS_LOG], [1], [microseconds in log messages]))
AX_CHECK_COMPILE_FLAG("-fpredictive-commoning", [CFLAGS="$CFLAGS -fpredictive-commoning"], [])
AX_CHECK_COMPILE_FLAG("-fpredictive-commoning", [CFLAGS="$CFLAGS -fpredictive-commoning"], [], "-Werror")
# Disable strict aliasing
# FIXME: we break strict aliasing on many occurenes, disable it until resolved or kept
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment