Skip to content

Commit

Permalink
[INFRA] Ignore bogus warnings in gcc 12
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Sep 11, 2023
1 parent 5efef82 commit 845f5a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ file (GLOB test_sources ${CMAKE_CURRENT_SOURCE_DIR}/*_test.cpp)
include_directories (${sdsl_include_directory})
include_directories (SYSTEM ${gtest_dir}/googletest/include)

## Bogus warnings in GCC12
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU"
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13)
add_compile_options (-Wno-restrict)
endif ()

link_libraries ("gtest_main" "gtest")

if (SDSL_CEREAL)
Expand Down

0 comments on commit 845f5a7

Please sign in to comment.