Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StETofHitMaker: Fix unused variable warnings #471

Merged
merged 1 commit into from
Dec 31, 2022

Conversation

plexoos
Copy link
Member

@plexoos plexoos commented Dec 21, 2022

g++ -m64 -fPIC -pipe -Wall -Woverloaded-virtual -std=c++0x -Wno-long-long -pthread -Wno-deprecated-declarations -O2 -g -falign-loops -falign-jumps -falign-functions -Dsl79_gcc485 -D__ROOT__ -DNEW_DAQ_READER -I. -IStRoot -I.sl79_gcc485/include -I/opt/software/linux-scientific7-x86_64/gcc-4.8.5/root-5.34.38-l3v6vso6qgojm4l2ctwjojs6trbt4hpn/include -c .sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx -o .sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.o
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx: In member function 'void StETofHitMaker::processStEvent()':
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx:415:27: warning: unused variable 'etofHits' [-Wunused-variable]
         StSPtrVecETofHit& etofHits = etofCollection->etofHits();
                           ^
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx: In member function 'void StETofHitMaker::processMuDst()':
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx:485:16: warning: unused variable 'nHits' [-Wunused-variable]
         size_t nHits = mMuDst->numberOfETofHit();
                ^
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx: In member function 'void StETofHitMaker::fillUnclusteredHitQA(const double&, bool)':
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx:1203:9: warning: unused variable 'eventTime' [-Wunused-variable]
     int eventTime = ( this->GetTime() / 10000 ) * 3600 + ( ( this->GetTime() % 10000 ) / 100 ) * 60 + ( this->GetTime() % 100 );
         ^

```
g++ -m64 -fPIC -pipe -Wall -Woverloaded-virtual -std=c++0x -Wno-long-long -pthread -Wno-deprecated-declarations -O2 -g -falign-loops -falign-jumps -falign-functions -Dsl79_gcc485 -D__ROOT__ -DNEW_DAQ_READER -I. -IStRoot -I.sl79_gcc485/include -I/opt/software/linux-scientific7-x86_64/gcc-4.8.5/root-5.34.38-l3v6vso6qgojm4l2ctwjojs6trbt4hpn/include -c .sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx -o .sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.o
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx: In member function 'void StETofHitMaker::processStEvent()':
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx:415:27: warning: unused variable 'etofHits' [-Wunused-variable]
         StSPtrVecETofHit& etofHits = etofCollection->etofHits();
                           ^
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx: In member function 'void StETofHitMaker::processMuDst()':
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx:485:16: warning: unused variable 'nHits' [-Wunused-variable]
         size_t nHits = mMuDst->numberOfETofHit();
                ^
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx: In member function 'void StETofHitMaker::fillUnclusteredHitQA(const double&, bool)':
.sl79_gcc485/OBJ/StRoot/StETofHitMaker/StETofHitMaker.cxx:1203:9: warning: unused variable 'eventTime' [-Wunused-variable]
     int eventTime = ( this->GetTime() / 10000 ) * 3600 + ( ( this->GetTime() % 10000 ) / 100 ) * 60 + ( this->GetTime() % 100 );
         ^
```
Copy link
Contributor

@klendathu2k klendathu2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@plexoos plexoos merged commit 81d6a97 into star-bnl:main Dec 31, 2022
@plexoos plexoos deleted the pr/fix_warnings_StETofHitMaker branch December 31, 2022 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants