Skip to content

Commit

Permalink
fix(build): disable more compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed May 2, 2024
1 parent 9ce1073 commit 7c5d1d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions support/BuildSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function(bs_select_cflags SANITIZERS COMPILE LINK)
endif()

if (MINGW)
list(APPEND _INTERNAL_COMPILE_FLAGS "-Wno-cast-function-type" "-Wno-pedantic" "-static")
list(APPEND _INTERNAL_LINK_FLAGS "-Wno-cast-function-type" "-Wno-pedantic" "-static")
list(APPEND _INTERNAL_COMPILE_FLAGS "-static")
list(APPEND _INTERNAL_LINK_FLAGS "-static")
endif()

# return _INTERNAL_COMPILE_FLAGS, _INTERNAL_LINK_FLAGS;
Expand Down Expand Up @@ -59,7 +59,7 @@ endfunction()
## LINK(list): A list containing the linker play_mode_flags
function(bs_internal_select_cflags_gcc SANITIZERS COMPILE LINK)
# "Who cares about ISO C anyway?"
list(APPEND _INTERNAL_FLAGS "-Wall" "-Wextra" "-Werror" "-Wshadow" "-Wpedantic" "-fPIC" "-flto" "-Wno-empty-translation-unit")
list(APPEND _INTERNAL_FLAGS "-Wall" "-Wextra" "-Werror" "-Wshadow" "-fPIC" "-flto" "-Wno-cast-function-type")

if (CMAKE_BUILD_TYPE MATCHES "^Debug" AND ${SANITIZERS} AND NOT WIN32)
list(APPEND _INTERNAL_FLAGS "-fsanitize=address" "-fsanitize=undefined" "-fsanitize=leak")
Expand Down

0 comments on commit 7c5d1d8

Please sign in to comment.