Skip to content

Commit

Permalink
Fix building on GCC 14
Browse files Browse the repository at this point in the history
  • Loading branch information
rollerozxa committed May 11, 2024
1 parent 40833e6 commit 925975d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -283,6 +283,9 @@ endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# Downgrade some errors to warnings when building with Clang
set(COMMON_FLAGS "${COMMON_FLAGS} -Wno-error=incompatible-function-pointer-types -Wno-error=int-conversion")
else()
# Do the same for GCC
set(COMMON_FLAGS "${COMMON_FLAGS} -Wno-error=incompatible-pointer-types -Wno-error=int-conversion")
endif()

set(COMMON_FLAGS_DEBUG "${COMMON_FLAGS} -O0 -ggdb -ffast-math -Werror=return-type -DDEBUG=1")
Expand Down

0 comments on commit 925975d

Please sign in to comment.