diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09e7d9e7..a08a348b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -127,11 +127,14 @@ jobs: matrix: include: # gcc-11 is the default in Ubuntu 22.04, defaults to c++17 + # Asio triggers a warning by applying an __unused__ attribute to a data member, + # supported in gcc >= 12 only - toolset: gcc-11 install: g++-11 container: ubuntu:22.04 cxxstd: '17' build-type: 'Debug' + cxxflags: '-Wno-attributes' server: "redis:8.2.1-alpine" - toolset: gcc-11 @@ -139,6 +142,7 @@ jobs: container: ubuntu:22.04 cxxstd: '20' build-type: 'Debug' + cxxflags: '-Wno-attributes' server: "valkey/valkey:8.1.3-alpine" - toolset: gcc-11 @@ -146,6 +150,7 @@ jobs: container: ubuntu:22.04 cxxstd: '20' build-type: 'Release' + cxxflags: '-Wno-attributes' server: "redis:7.4.5-alpine" - toolset: gcc-12 diff --git a/test/Jamfile b/test/Jamfile index 47a20156..4a1f5ac2 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -36,6 +36,9 @@ local requirements = msvc:"/bigobj" windows:_WIN32_WINNT=0x0601 gcc:-Wno-maybe-uninitialized # spurious gcc warning in Asio + # Asio applies __attribute__((unused)) to non-static data members, which + # which requires gcc >= 12 (https://github.com/chriskohlhoff/asio/issues/1784) + gcc-11:-Wno-attributes [ requires cxx14_constexpr cxx14_generic_lambdas