From 106d7e2a743041075346ef11ab5347f3c86a7ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Mon, 10 Jul 2017 10:28:10 +0200 Subject: [PATCH] Initialize JunitReporter::unexpectedExceptions in constructor This is not needed for correctness, but will prevent PVS warning from triggering, and there is basically no performance difference. Closes #951 --- include/reporters/catch_reporter_junit.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/reporters/catch_reporter_junit.hpp b/include/reporters/catch_reporter_junit.hpp index a671c68f..28a671cd 100644 --- a/include/reporters/catch_reporter_junit.hpp +++ b/include/reporters/catch_reporter_junit.hpp @@ -52,6 +52,7 @@ namespace Catch { JunitReporter( ReporterConfig const& _config ) : CumulativeReporterBase( _config ), xml( _config.stream() ), + unexpectedExceptions( 0 ), m_okToFail( false ) { m_reporterPrefs.shouldRedirectStdOut = true;