From 784615a21bfe97984dcb023ed4ef60abde5c86fd Mon Sep 17 00:00:00 2001 From: Nathan Brei Date: Tue, 26 Nov 2024 14:58:19 -0500 Subject: [PATCH] Fix warnings on gcc 11.5 --- src/libraries/JANA/Engine/JExecutionEngine.cc | 1 + src/programs/unit_tests/Components/BarrierEventTests.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libraries/JANA/Engine/JExecutionEngine.cc b/src/libraries/JANA/Engine/JExecutionEngine.cc index 7ad624eb4..08e13fa0f 100644 --- a/src/libraries/JANA/Engine/JExecutionEngine.cc +++ b/src/libraries/JANA/Engine/JExecutionEngine.cc @@ -788,6 +788,7 @@ std::string ToString(JExecutionEngine::RunStatus runstatus) { case JExecutionEngine::RunStatus::Pausing: return "Pausing"; case JExecutionEngine::RunStatus::Draining: return "Draining"; case JExecutionEngine::RunStatus::Finished: return "Finished"; + default: return "CorruptedRunStatus"; } } diff --git a/src/programs/unit_tests/Components/BarrierEventTests.cc b/src/programs/unit_tests/Components/BarrierEventTests.cc index 4a2ce5ce7..37e62580c 100644 --- a/src/programs/unit_tests/Components/BarrierEventTests.cc +++ b/src/programs/unit_tests/Components/BarrierEventTests.cc @@ -8,7 +8,7 @@ #include "JANA/Utils/JBenchUtils.h" #include "catch.hpp" -int global_resource = 0; +size_t global_resource = 0; struct BarrierSource : public JEventSource {