Merge pull request #481 from boostorg/serialization_issue_271

Add msvc support for [[maybe_unused]] attribute.
This commit is contained in:
jzmaddock
2023-08-26 09:29:08 +01:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@ -570,9 +570,6 @@ jobs:
- name: Config_test nvcc+clang
run: nvcc -std=c++${{ matrix.std }} --compiler-bindir=clang++ -o config_test -I../../.. config_test.cpp -latomic && ./config_test
working-directory: ../boost-root/libs/config/test
- name: Config_test nvcc-cuda+clang
run: nvcc -c -std=c++${{ matrix.std }} --compiler-bindir=clang++ -I../../.. config_test.cu
working-directory: ../boost-root/libs/config/test
- name: Config_test clang-cuda
run: clang++ -nocudalib --no-cuda-version-check -c --cuda-gpu-arch=sm_75 -std=c++${{ matrix.std }} -I../../.. config_test.cu
working-directory: ../boost-root/libs/config/test

View File

@ -305,6 +305,10 @@
# define BOOST_CXX_VERSION 201402L
#endif
#if BOOST_CXX_VERSION >= 201703L
# define BOOST_ATTRIBUTE_UNUSED [[maybe_unused]]
#endif
#ifndef BOOST_COMPILER
// TODO:
// these things are mostly bogus. 1200 means version 12.0 of the compiler. The