Skip to content

warning fixes in Ca & event display

Sergey Gorbunov requested to merge se.gorbunov/cbmroot:warningsCa into master

MR fixes the following warnings (that can be seen here: https://cdash.gsi.de/buildSummary.php?buildid=432309):

====

In file included from /Users/fairroot/builds/computing/cbmroot/build/reco/L1/G__L1.cxx:58:
[CTest: warning matched] /Users/fairroot/builds/computing/cbmroot/reco/L1/CbmL1.h:433:61: warning: suggest braces around initialization of subobject [-Wmissing-braces]
  cbm::ca::DetIdArr_t<std::array<float, 3>> fvMisalignment{{0.}};  ///< Misalignment
[CTest: warning suppressed]                                                             ^~

====

/home/cbmdock/cbmroot/core/eventdisplay/CbmTsPointSetArrayDraw.cxx: In member function 'void CbmTsPointSetArrayDraw::GotoEvent(uint32_t)':
/home/cbmdock/cbmroot/core/eventdisplay/CbmTsPointSetArrayDraw.cxx:91:27: warning: comparison of integer expressions of different signedness: 'Int_t' {aka 'int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
     for (Int_t iP = 0; iP < event->GetNofData(ECbmDataType::kTofUHit); ++iP) {
                        ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Edited by Sergey Gorbunov

Merge request reports