From fbf0d413a8229cf0ce2b9af168c4e31611e8b478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=D1=91pa=20Dolgorukov?= Date: Tue, 22 Oct 2024 17:34:19 +0500 Subject: [PATCH] Get rid of the compiler warning "not all control paths return a value" (#472) --- tests/core_tests/tx_validation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/core_tests/tx_validation.cpp b/tests/core_tests/tx_validation.cpp index ea5f6b38..138f8746 100644 --- a/tests/core_tests/tx_validation.cpp +++ b/tests/core_tests/tx_validation.cpp @@ -2076,6 +2076,8 @@ bool tx_pool_semantic_validation::generate(std::vector& events { return sum + boost::get(input).amount; } + + return sum; } }; @@ -2085,6 +2087,8 @@ bool tx_pool_semantic_validation::generate(std::vector& events { return sum + boost::get(output).amount; } + + return sum; } };