Developing #87

Fix warnings

Added by Egor Ovcharenko over 6 years ago. Updated about 6 years ago.

Status:ОткрытаStart date:11/08/2017
Priority:НизкийDue date:
Assignee:Vitaliy Schetinin% Done:

0%

Category:-
Target version:v-1.0

Description

Я при первом проходе вычистил массу ворнингов, чтобы они не раздражали при компиляции. Однако осталось буквально парочка, которые легко исправляются, если шаришь в том коде.

1) Вникнуть и понять, нет ли тут коллизий имён переменных. Ну а потом просто переименовать что надо.

/opt/Fair/expertroot/BeamDet/ERBeamDetReconstructor.cxx: In member function ‘double ERBeamDetReconstructor::UpstreamEnergyLoss(UpstreamMatter*, ERParticle*, bool, bool, char*)’:
/opt/Fair/expertroot/BeamDet/ERBeamDetReconstructor.cxx:420:10: warning: declaration of ‘Tb’ shadows a member of ‘ERBeamDetReconstructor’ [-Wshadow]
   double Tb,range; //TODO fix this!!!
          ^
In file included from /opt/Fair/expertroot/BeamDet/ERBeamDetReconstructor.cxx:1:0:
/opt/Fair/expertroot/BeamDet/ERBeamDetReconstructor.h:69:9: note: shadowed declaration is here
   float Tb; // temp
         ^

2) По идее - просто добавить строку ClassDef. Неясно, почему вообще без этого работает.

Error in : ERSimtoRaw inherits from TObject but does not have its own ClassDef

History

#1 Updated by Vitaliy Schetinin about 6 years ago

  • Description updated (diff)
  • Target version set to v-1.0

Also available in: Atom PDF