Skip to content

Commit 7bc2d1b

Browse files
committed
bugprone-switch-missing-default-case
1 parent e547ea7 commit 7bc2d1b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

PWGDQ/Core/HistogramManager.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,11 @@ void HistogramManager::AddHistogram(const char* histClass, const char* hname, co
338338
h->SetDirectory(nullptr);
339339
hList->Add(h);
340340
break;
341+
342+
default:
343+
LOG(warn) << "HistogramManager::AddHistogram(): Unsupported dimension " << dimension
344+
<< " for histogram " << hname;
345+
return;
341346
} // end switch
342347
}
343348

@@ -550,6 +555,11 @@ void HistogramManager::AddHistogram(const char* histClass, const char* hname, co
550555
}
551556
hList->Add(h);
552557
break;
558+
559+
default:
560+
LOG(warn) << "HistogramManager::AddHistogram(): Unsupported dimension " << dimension
561+
<< " for histogram " << hname;
562+
return;
553563
} // end switch(dimension)
554564
}
555565

0 commit comments

Comments
 (0)