From d4b502be9f4d9968325af96786de516cdb355028 Mon Sep 17 00:00:00 2001 From: Jonathan Kimmitt Date: Wed, 29 Dec 2021 11:58:19 +0000 Subject: [PATCH] Suggest fix for =maybe-uninitialized problem --- simulator/fp_test/fp_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulator/fp_test/fp_test.cpp b/simulator/fp_test/fp_test.cpp index d6efdf1..7d2c8a6 100644 --- a/simulator/fp_test/fp_test.cpp +++ b/simulator/fp_test/fp_test.cpp @@ -542,7 +542,7 @@ void SearchSettings() { TestResult_s BestResult; size_t BestStep0Precision; size_t BestStep1Precision; - size_t BestStep2Precision; + size_t BestStep2Precision = 0; uint64_t BestStep1CorrectionFactor = 0; uint64_t BestStep2CorrectionFactor = 0;