mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Merge pull request #481 from boostorg/serialization_issue_271
Add msvc support for [[maybe_unused]] attribute.
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user