From 6c17ea2c59de2811d5f115338306bf45a3701b6d Mon Sep 17 00:00:00 2001 From: sss <sss@karma> Date: Sun, 8 Dec 2024 16:41:04 -0500 Subject: [PATCH] Monopole: Suppress cppcheck false positive. Because G4Exception doesn't return. --- Simulation/G4Extensions/Monopole/src/G4mplEquationSetup.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Simulation/G4Extensions/Monopole/src/G4mplEquationSetup.cxx b/Simulation/G4Extensions/Monopole/src/G4mplEquationSetup.cxx index 9eb220eb2693..1a00c7d421e2 100644 --- a/Simulation/G4Extensions/Monopole/src/G4mplEquationSetup.cxx +++ b/Simulation/G4Extensions/Monopole/src/G4mplEquationSetup.cxx @@ -208,6 +208,7 @@ G4mplEquationSetup::CreateStepperToChordFinder(G4MagneticField* magFieldNC) delete fMonopoleChordFinder; auto integrDriver = new G4MagInt_Driver( fMinStep, fMonopoleStepper, + // cppcheck-suppress nullPointerRedundantCheck; false positive fMonopoleStepper->GetNumberOfVariables() ); fMonopoleChordFinder = new G4ChordFinder( integrDriver ); } -- GitLab