The clang compiler gives too many false errors atm. So downgrade cast-align and unused-value errors into warnings. This is done like this right now but should be fixed later. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/configure.ac b/configure.ac index 47710bb..f9570aa 100644 --- a/configure.ac +++ b/configure.ac @@ -426,5 +426,11 @@ if (test "${enable_client}" != "no"); then AC_MSG_ERROR(readline header files are required)) fi +if (test "${CC}" == "clang"); then + # Disable cast-align and unused-value errors for clang atm. + # Warning is still printed but it is not considered an error. + CFLAGS="$CFLAGS -Wno-error=cast-align -Wno-error=unused-value" +fi + AC_OUTPUT(Makefile include/version.h src/connman.service scripts/connman doc/version.xml connman.pc) -- 1.7.11.4 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman