Skip to content

Commit

Permalink
[ci] Disable certain compiler warnings for gcc 14
Browse files Browse the repository at this point in the history
These seems to be false positives.
  • Loading branch information
endJunction committed Jul 5, 2024
1 parent 6cc5f61 commit 82a30a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/cmake/CompilerSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL)
$<$<COMPILE_LANGUAGE:CXX>:-Wno-stringop-overread>
)
endif()
if(CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 14.1.1)
# See https://gitlab.opengeosys.org/ogs/ogs/-/merge_requests/5037
add_compile_options(
$<$<COMPILE_LANGUAGE:CXX>:-Wno-array-bounds>
$<$<COMPILE_LANGUAGE:CXX>:-Wno-stringop-overflow>
$<$<COMPILE_LANGUAGE:CXX>:-Wno-stringop-overread>
)
endif()
endif()

if(COMPILER_IS_CLANG)
Expand Down

0 comments on commit 82a30a3

Please sign in to comment.