]> granicus.if.org Git - libevent/commitdiff
Add -Wno-void-pointer-to-enum-cast (we use this hack in tests)
authorAzat Khuzhin <azat@libevent.org>
Sun, 19 Sep 2021 10:36:15 +0000 (13:36 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sun, 19 Sep 2021 10:47:32 +0000 (13:47 +0300)
Refs: https://reviews.llvm.org/D75758

CMakeLists.txt
configure.ac

index 6acf2414091f13ac0987ea009247a3aea1d5c8ba..fd01994a17e6935490638ec03c9d21bae64614ad 100644 (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})
index a68672be98c478d84e414618243ade9e51649c04..4d4a3b2d3c221db77c4a750be8966c8a52b9ee1a 100644 (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__)