mirror of
https://github.com/nlohmann/json.git
synced 2026-09-28 02:30:32 +00:00
Fix CI: disable MSVC warning C5285 for the vendored doctest (#5577)
The windows-11-arm runner now ships MSVC 19.51, which reports doctest's
forward declaration of std::tuple as C5285 ("cannot declare a
specialization for 'std::tuple'"). With /WX this breaks the msvc-arm64
job on develop and on every open pull request. Disable the warning for
the test targets, like the other MSVC warnings already disabled there.
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
@@ -80,7 +80,10 @@ target_compile_options(test_main PUBLIC
|
|||||||
# std::allocator_traits<...>::construct for the custom-base-class
|
# std::allocator_traits<...>::construct for the custom-base-class
|
||||||
# test's map type past VS2015's limit. The name is only used for
|
# test's map type past VS2015's limit. The name is only used for
|
||||||
# debug info, so truncation does not affect the build.
|
# debug info, so truncation does not affect the build.
|
||||||
$<$<CXX_COMPILER_ID:MSVC>:/W4;/wd4566;/wd4996;/wd4702;/wd4503>
|
# Disable warning C5285: cannot declare a specialization for 'std::tuple'; MSVC 19.51
|
||||||
|
# reports the forward declarations of standard library
|
||||||
|
# templates in the vendored doctest.h
|
||||||
|
$<$<CXX_COMPILER_ID:MSVC>:/W4;/wd4566;/wd4996;/wd4702;/wd4503;/wd5285>
|
||||||
# https://github.com/nlohmann/json/issues/1114
|
# https://github.com/nlohmann/json/issues/1114
|
||||||
$<$<CXX_COMPILER_ID:MSVC>:/bigobj> $<$<BOOL:${MINGW}>:-Wa,-mbig-obj>
|
$<$<CXX_COMPILER_ID:MSVC>:/bigobj> $<$<BOOL:${MINGW}>:-Wa,-mbig-obj>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user