Skip to content

Commit

Permalink
Attempt to fix new broken GCC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aardappel committed Feb 13, 2025
1 parent 9eb8d82 commit 9f439f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ file(
lobster/src/tccbind.cpp
lobster/external/libtcc/libtcc.c
)

if(CMAKE_COMPILER_IS_GNUCXX)
# These warnings seem pretty broken in GCC, with lots of false positives.
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -Wno-array-bounds -Wno-stringop-overflow -Wno-maybe-uninitialized")
endif()

add_library(lobster STATIC ${lobster_sources})
target_include_directories(lobster PUBLIC lobster/include lobster/src lobster/external/libtcc)

Expand Down

0 comments on commit 9f439f9

Please sign in to comment.