From 060a41ec7b954cf6a556a88035f04b771680916b Mon Sep 17 00:00:00 2001 From: Jonathan Vander Mey Date: Sat, 24 Aug 2019 17:42:16 -0400 Subject: [PATCH] Suppress false positive from clang-analyzer Fixes issue #1230 --- include/internal/catch_context.h | 1 + 1 file changed, 1 insertion(+) 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; }