From 95b1982970457e497201271ffc91d97783dd66bd Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Sat, 20 Aug 2022 15:42:07 +0200 Subject: [PATCH] Fix gcc compiler warnings Fix various warnings related to unused typedefs, wrong deallocators, using `*` for booleans, etc. --- src/BayesianToyMC.cc | 2 +- src/CascadeMinimizer.cc | 2 +- src/HybridNew.cc | 1 - src/MultiDimFit.cc | 2 +- src/th1fmorph.cc | 7 +++++-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/BayesianToyMC.cc b/src/BayesianToyMC.cc index bf2f44bc63c..0ed70e2da71 100644 --- a/src/BayesianToyMC.cc +++ b/src/BayesianToyMC.cc @@ -194,7 +194,7 @@ std::pair BayesianToyMC::priorPredictiveDistribution(RooStats::Mo if (verbose > 2) { std::cout << "\n\n==== POINT "<< t << ","<Print("V"); } double nllVal = nll->getVal(); if (offset) { - if (isnan(*offset)) *offset = nllVal; + if (std::isnan(*offset)) *offset = nllVal; nllVal -= *offset; } if (verbose > 1) std::cout << "nll[" << t << ","<first == 0 && CLs_) return std::pair(1,0); RooArgSet poi(*mc_s->GetParametersOfInterest()); diff --git a/src/MultiDimFit.cc b/src/MultiDimFit.cc index bc472b8c299..58048423ca9 100644 --- a/src/MultiDimFit.cc +++ b/src/MultiDimFit.cc @@ -1230,7 +1230,7 @@ void MultiDimFit::splitGridPoints(const std::string& s, std::vector