Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorJonathan Vander Mey2019-08-24 17:42:16 -0400
committerMartin Hořeňovský2019-10-20 17:27:09 +0200
commit060a41ec7b954cf6a556a88035f04b771680916b (patch)
treeef39cfe89b8ad3ea277f7290875cd72fd03af243 /include
parent90825a4f7aa4f537a168ce95e901933fda375f88 (diff)
downloadcatch3-060a41ec7b954cf6a556a88035f04b771680916b.tar.gz
Suppress false positive from clang-analyzer
Fixes issue #1230
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/internal/catch_context.h b/include/internal/catch_context.h
index 436621f6..c579c399 100644
--- a/include/internal/catch_context.h
+++ b/include/internal/catch_context.h
@@ -46,6 +46,7 @@ namespace Catch {
{
if( !IMutableContext::currentContext )
IMutableContext::createContext();
+ // NOLINTNEXTLINE(clang-analyzer-core.uninitialized.UndefReturn)
return *IMutableContext::currentContext;
}