I'm using 222.10 on W98 and am seeing an oddity in my EventCint.cxx. I get warnings about if statements with no code to execute after evaluating the condition, eg: // automatic copy constructor static int G__IntObj_IntObj_4_1(G__value *result7,char *funcname,struct G__param *libp,int hash) { IntObj *p; if(1!=libp->paran) ; p=new IntObj(*(IntObj*)G__int(libp->para[0])); result7->obj.i = (long)p; result7->ref = (long)p; result7->type = 'u'; result7->tagnum = G__get_linked_tagnum(&G__EventCintLN_IntObj); return(1 || funcname || hash || result7 || libp) ; } Note the if(1!=libp->paran) ; This happens in all my classes. This particular one is the simplest, being just an integer inheriting from TObject: // IntObj.h A temporary class till I find out how to get // base classes into TObjArrays. #ifndef INTOBJ_H #define INTOBJ_H #include "TObject.h" class IntObj: public TObject { public: IntObj(); IntObj(Int_t num); ~IntObj(); Int_t Getnum(); private: Int_t m_num; ClassDef(IntObj,1) }; #endif My Rootcint statement is: rootcint -f EventCint.cxx -c EDeposit.h Event.h McPart.h logID.h Tracker_Hit.h TkID.h CalHit.h IntObj.h EventLinkDef.h I also saw this in 222.09. Any idea what is causing this odd bit of code? Richard -- Richard Dubois SLD, Stanford Linear Accelerator Center Richard@slac.stanford.edu http://www.slac.stanford.edu/~richard/ 650-926-3824 650-926-2923 (FAX)
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:41 MET