cleanups, make clang happy

This commit is contained in:
cathugger
2019-03-15 21:04:40 +00:00
parent 9ac54f6db3
commit 390e8ea9de
11 changed files with 44 additions and 34 deletions

View File

@@ -186,7 +186,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[cstd="$cstd -Wall"],
[AC_MSG_RESULT([no])]
)
CFLAGS="$cstd -Wno-maybe-uninitialized"
# (negative) detection on clang fails without -Werror
CFLAGS="$cstd -Wno-maybe-uninitialized -Werror"
AC_MSG_CHECKING([whether CC supports -Wno-maybe-uninitialized])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[AC_MSG_RESULT([yes])]