Skip to content

Commit 46787b5

Browse files
committed
Fix: fix compiler warnings
1 parent 41445c2 commit 46787b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Detectors/TPC/qc/include/TPCQC/GPUErrorQA.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ class GPUErrorQA
5454
void resetHistograms();
5555

5656
/// return histograms
57-
const std::unordered_map<std::string, std::unique_ptr<TH1>>& getMapHist() const { return mMapHist; };
57+
const std::unordered_map<std::string, std::unique_ptr<TH1>>& getMapHist() const { return mMapHist; }
5858

5959
/// Dump results to a file
6060
void dumpToFile(std::string filename);
6161

6262
private:
6363
std::unordered_map<std::string, std::unique_ptr<TH1>> mMapHist;
6464

65-
ClassDefNV(GPUErrorQA, 1);
65+
ClassDefNV(GPUErrorQA, 2);
6666
};
6767
} // namespace o2::tpc::qc
6868

Detectors/TPC/qc/src/GPUErrorQA.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void GPUErrorQA::dumpToFile(const std::string filename)
6868
auto f = std::unique_ptr<TFile>(TFile::Open(filename.data(), "recreate"));
6969
TObjArray arr;
7070
arr.SetName("GPUErrorQA_Hists");
71-
for (const auto& [name, hist] : mMapHist) {
71+
for ([[maybe_unused]] const auto& [name, hist] : mMapHist) {
7272
arr.Add(hist.get());
7373
}
7474
arr.Write(arr.GetName(), TObject::kSingleKey);

0 commit comments

Comments
 (0)