Project

General

Profile

Actions

Development #1371

closed

Development #1353: Code cleanup for OCT19

Codecleanup: trd/rec/CbmTrdModuleRecR.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
Spent time:

Description

Compiler warnings:


/home/uhlig/cbm/release/oct19/trd/rec/CbmTrdModuleRecR.cxx: In member function 'virtual Int_t CbmTrdModuleRecR::FindClusters()':
[CTest: warning matched] /home/uhlig/cbm/release/oct19/trd/rec/CbmTrdModuleRecR.cxx:149:13: warning: variable 'digiAddress' set but not used [-Wunused-but-set-variable]
       Int_t digiAddress  =     digi->GetAddress();
             ^
/home/uhlig/cbm/release/oct19/trd/rec/CbmTrdModuleRecR.cxx: In member function 'void CbmTrdModuleRecR::addClusters(std::deque<std::pair<int, CbmTrdDigi*> >)':
[CTest: warning matched] /home/uhlig/cbm/release/oct19/trd/rec/CbmTrdModuleRecR.cxx:384:9: warning: variable 'add' set but not used [-Wunused-but-set-variable]
   Int_t add=0;
         ^
/home/uhlig/cbm/release/oct19/trd/rec/CbmTrdModuleRecR.cxx: In member function 'virtual Int_t CbmTrdModuleRecR::FindClusters()':
[CTest: warning matched] /home/uhlig/cbm/release/oct19/trd/rec/CbmTrdModuleRecR.cxx:278:87: warning: 'CoGrow' may be used uninitialized in this function [-Wmaybe-uninitialized]
      if(counterbot==3 && counterrow==3 && !addbot && TMath::Abs((CoGbot-CoGrow))< 0.25*CoGrow)    {addbot=true;}
                                                                                       ^

Please fix.

Actions #1

Updated by Etienne Bechtel almost 3 years ago

  • % Done changed from 0 to 100

Updated @Revision14976

Actions #2

Updated by Volker Friese almost 3 years ago

  • Status changed from Assigned to Closed

Thanks.

In future commits, please include "Refs #[issue_nr]" to the commit message; the commit is then automatically linked to the issue.

Actions

Also available in: Atom PDF