From bafdf2abd1ecfa118a631c35e3249e9f873a1028 Mon Sep 17 00:00:00 2001 From: Alvaro Tolosa Delgado Date: Fri, 9 Aug 2024 16:11:02 +0200 Subject: [PATCH] cast variables to void to get rid of spurious compiler warning --- DCHdigi/src/DCHdigi.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DCHdigi/src/DCHdigi.cpp b/DCHdigi/src/DCHdigi.cpp index 98fcb5b..bba91d8 100644 --- a/DCHdigi/src/DCHdigi.cpp +++ b/DCHdigi/src/DCHdigi.cpp @@ -403,6 +403,12 @@ std::pair DCHdigi::CalculateClusters(const edm4hep::SimTracke std::vector vecEtr,vecEtrTot; float sumVecTot,meanVecTot,sumVec,meanVec; /////////end from Createclusters.h///////// + + // get rid of spurious compiler error, Werror=unused-but-set-variable + (void)NCl; + (void)vecpar; + (void)sumVecTot; + int NCld; TString parName; double bg, Momentum, mass=-1e300;