mirror of
https://github.com/nlohmann/json.git
synced 2025-06-07 19:42:48 +08:00
🚨 suppress warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
parent
dc877a5030
commit
0b4cb4c2fc
9
tests/thirdparty/doctest/doctest.h
vendored
9
tests/thirdparty/doctest/doctest.h
vendored
@ -4497,11 +4497,12 @@ namespace {
|
||||
|
||||
String translateActiveException() {
|
||||
#ifndef DOCTEST_CONFIG_NO_EXCEPTIONS
|
||||
String res;
|
||||
auto& translators = getExceptionTranslators();
|
||||
for(auto& curr : translators)
|
||||
if(curr->translate(res))
|
||||
return std::move(res);
|
||||
for(auto& curr : translators) {
|
||||
String res;
|
||||
if (curr->translate(res))
|
||||
return res;
|
||||
}
|
||||
// clang-format off
|
||||
DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wcatch-value")
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user