]> granicus.if.org Git - libevent/commitdiff
cmake: tiny cleanup
authorAzat Khuzhin <azat@libevent.org>
Sat, 12 Nov 2022 17:56:03 +0000 (18:56 +0100)
committerAzat Khuzhin <azat@libevent.org>
Sat, 12 Nov 2022 17:56:03 +0000 (18:56 +0100)
CMakeLists.txt

index 4efe834e6031a274b2f95b436e8ce8a8db878de8..a72de00a5fd7c0927c9e3800c7c4cfb542bd35c8 100644 (file)
@@ -293,8 +293,6 @@ if (${GNUC})
     option(EVENT__ENABLE_GCC_FUNCTION_SECTIONS "Enable gcc function sections" OFF)
     option(EVENT__ENABLE_GCC_WARNINGS "Make all GCC warnings into errors" OFF)
 
-    set(GCC_V ${CMAKE_C_COMPILER_VERSION})
-
     list(APPEND __FLAGS
          -Wall -Wextra -Wno-unused-parameter -Wstrict-aliasing -Wstrict-prototypes
          -Wundef
@@ -317,14 +315,14 @@ if (${GNUC})
 
          -Wwrite-strings
 
-        # Disable unused-function warnings. These trigger for minheap-internal.h.
-        -Wno-unused-function
+         # Disable unused-function warnings. These trigger for minheap-internal.h.
+         -Wno-unused-function
     )
 
     if (${CLANG})
         list(APPEND __FLAGS
-            # we use this hack in tests
-            -Wno-void-pointer-to-enum-cast)
+             # we use this hack in tests
+             -Wno-void-pointer-to-enum-cast)
     endif()
 
     if (EVENT__DISABLE_GCC_WARNINGS)