Skip to content

Commit

Permalink
cmake: tiny cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Nov 12, 2022
1 parent 56d380b commit c8c730c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit c8c730c

Please sign in to comment.