Add -Wno-void-pointer-to-enum-cast (we use this hack in tests)

Refs: https://reviews.llvm.org/D75758
This commit is contained in:
Azat Khuzhin 2021-09-19 13:36:15 +03:00
parent 29492364a2
commit 7179ceddf0
2 changed files with 4 additions and 0 deletions

View File

@ -295,6 +295,9 @@ if (${GNUC})
-Wlogical-op
-Wwrite-strings
# we use this hack in tests
-Wno-void-pointer-to-enum-cast
)
if (${CLANG})

View File

@ -772,6 +772,7 @@ if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
dnl Disable warnings for unused paramaters
AX_CHECK_COMPILE_FLAG([-Wno-unused-parameter], [CFLAGS="$CFLAGS -Wno-unused-parameter"],[],[-Werror])
AX_CHECK_COMPILE_FLAG([-Wno-void-pointer-to-enum-cast], [CFLAGS="$CFLAGS -Wno-void-pointer-to-enum-cast"],[],[-Werror])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
#if !defined(__clang__)