Skip to content

Commit

Permalink
Bump GCC version used in CI.
Browse files Browse the repository at this point in the history
A warning in cow_test.cpp needed to be supressed. See stlab#438
  • Loading branch information
camio committed Jun 16, 2022
1 parent 0baca9a commit acba2ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/matrix.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"config": [
{
"name": "Linux GCC 10",
"name": "Linux GCC 11",
"compiler": "gcc",
"version": "10",
"version": "11",
"os": "ubuntu-22.04"
},
{
Expand Down
4 changes: 4 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ add_executable( stlab.test.cow
cow_test.cpp
main.cpp )

if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "11" )
set_source_files_properties( cow_test.cpp PROPERTIES COMPILE_FLAGS -Wno-free-nonheap-object )
endif()

target_compile_definitions(stlab.test.cow PRIVATE STLAB_UNIT_TEST)

target_link_libraries( stlab.test.cow PUBLIC stlab::testing )
Expand Down

0 comments on commit acba2ff

Please sign in to comment.