Skip to content

Commit

Permalink
Suppress a false positive from clang-analyzer
Browse files Browse the repository at this point in the history
Fixes issue catchorg#1230
  • Loading branch information
jvandermey-evertz committed Aug 24, 2019
1 parent ce42deb commit b17f754
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions single_include/catch2/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4285,6 +4285,7 @@ namespace Catch {
{
if( !IMutableContext::currentContext )
IMutableContext::createContext();
// NOLINTNEXTLINE(clang-analyzer-core.uninitialized.UndefReturn)
return *IMutableContext::currentContext;
}

Expand Down

0 comments on commit b17f754

Please sign in to comment.