Skip to content

Commit

Permalink
🚨 fix Clang-Tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
falbrechtskirchinger committed Sep 11, 2022
1 parent 9dbd679 commit 6e7b486
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 148 deletions.
6 changes: 5 additions & 1 deletion tests/src/unit-assert_macro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ TEST_CASE("JSON_ASSERT(x)")
assert_counter = 0;
CHECK(assert_counter == 0);

const json::iterator it;
// Fails on Clang 3.5 with "requires a user-provided default constructor"
#if !DOCTEST_CLANG || DOCTEST_CLANG >= DOCTEST_COMPILER(4, 0, 0)
const
#endif
json::iterator it;
json j;

// in case assertions do not abort execution, an exception is thrown
Expand Down
Loading

0 comments on commit 6e7b486

Please sign in to comment.