Skip to content

Commit

Permalink
Bump GCC version used in CI. (#440)
Browse files Browse the repository at this point in the history
A warning in cow_test.cpp needed to be supressed. See #438
  • Loading branch information
camio authored Jun 20, 2022
1 parent 2f9876e commit ca12d8c
Show file tree
Hide file tree
Showing 2 changed files with 8 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
6 changes: 6 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ add_executable( stlab.test.cow
cow_test.cpp
main.cpp )

# Disable warning on GCC 11 and above for cow_test.cpp. See
# github.com/stlab/libraries/issues/438 for details.
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 ca12d8c

Please sign in to comment.