Project

General

Profile

Actions

Development #1372

closed

Development #1353: Code cleanup for OCT19

Code cleanup: trd/rec/CbmTrdModuleRecT.cxx

Added by Volker Friese almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
09/16/2019
Due date:
09/27/2019
% Done:

100%

Estimated time:
1.00 h

Description

Compiler warnings:

/home/uhlig/cbm/release/oct19/trd/rec/CbmTrdModuleRecT.cxx: In member function 'virtual CbmTrdHit* CbmTrdModuleRecT::MakeHit(Int_t, const CbmTrdCluster*, std::vector<const CbmTrdDigi*>*)':
[CTest: warning matched] /home/uhlig/cbm/release/oct19/trd/rec/CbmTrdModuleRecT.cxx:198:9: warning: variable 'ovf' set but not used [-Wunused-but-set-variable]
         ovf(0),
         ^
[CTest: warning matched] /home/uhlig/cbm/release/oct19/trd/rec/CbmTrdModuleRecT.cxx:208:11: warning: variable 'typ' set but not used [-Wunused-but-set-variable]
           typ,          // cluster max signal type
           ^
[CTest: warning matched] /home/uhlig/cbm/release/oct19/trd/rec/CbmTrdModuleRecT.cxx:246:69: warning: 'pad' may be used uninitialized in this function [-Wmaybe-uninitialized]
   for(UInt_t idx(0); idx<vx.size(); idx++){vt[idx]-=dt0;vx[idx]-=pad;}
                                                                     ^

Please fix.

Actions #1

Updated by Volker Friese almost 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Warning disappeared.

Actions

Also available in: Atom PDF