From: fca Date: Wed, 21 Jul 1999 16:50:40 +0000 (+0000) Subject: Avoid all warnings on SunOS. Again! X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=c90dd3e25ef9bc83db7fb882e07b55b20d8f48cd;p=u%2Fmrichter%2FAliRoot.git Avoid all warnings on SunOS. Again! --- diff --git a/RICH/AliRICH.cxx b/RICH/AliRICH.cxx index 7e3071dab8c..ee69b108f81 100644 --- a/RICH/AliRICH.cxx +++ b/RICH/AliRICH.cxx @@ -828,9 +828,10 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename) // keep galice.root for signal and name differently the file for // background when add! otherwise the track info for signal will be lost ! - static Bool_t first=true; + static Bool_t first=kTRUE; static TTree *TH1; static TFile *File; + Int_t i; char *Add = strstr(option,"Add"); AliRICHchamber* iChamber; @@ -844,7 +845,7 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename) AliRICH *RICH = (AliRICH *) gAlice->GetDetector("RICH"); AliRICHHitMap* HitMap[10]; - for (Int_t i=0; i<10; i++) {HitMap[i]=0;} + for (i=0; i<10; i++) {HitMap[i]=0;} if (Add ) { if(first) { fFileName=filename; @@ -853,7 +854,7 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename) cout<<"I have opened "<cd(); File->ls(); @@ -888,7 +889,7 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename) AliRICHHitMap* hm; for (int icat=0; icat<1; icat++) { - for (Int_t i=0; i<7; i++) { + for (i=0; i<7; i++) { if (HitMap[i]) { hm=HitMap[i]; delete hm; @@ -896,7 +897,7 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename) } } Int_t counter=0; - for (Int_t i =0; i<7; i++) { + for (i =0; i<7; i++) { iChamber=(AliRICHchamber*) (*fChambers)[i]; if (iChamber->Nsec()==1 && icat==1) { continue; @@ -1176,8 +1177,8 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename) TClonesArray *fDch; for (int k=0;k<7;k++) { fDch= RICH->DigitsAddress(k); - int ndig=fDch->GetEntriesFast(); - printf (" k, ndigits %d %d \n",k,ndig); + int ndigit=fDch->GetEntriesFast(); + printf (" k, ndigits %d %d \n",k,ndigit); } RICH->ResetDigits(); diff --git a/RICH/AliRICHHitMap.h b/RICH/AliRICHHitMap.h index 6bf3caa0bc8..bbcfda74501 100644 --- a/RICH/AliRICHHitMap.h +++ b/RICH/AliRICHHitMap.h @@ -30,7 +30,7 @@ public AliRICHHitMap Int_t fNpy; TObjArray *fDigits; Int_t fNdigits; - Int_t *fHitMap; + Int_t *fHitMap; //! Int_t fMaxIndex; public: diff --git a/RICH/AliRICHSegResV0.h b/RICH/AliRICHSegResV0.h index d9c0a4ca371..65fc6864026 100644 --- a/RICH/AliRICHSegResV0.h +++ b/RICH/AliRICHSegResV0.h @@ -86,8 +86,7 @@ public AliRICHsegmentation { Float_t fxt; Float_t fyt; // - // Version Identifier - char *fName; + char *fName; //! Version Identifier }; class AliRICHresponseV0 : //Mathieson response @@ -147,7 +146,7 @@ public AliRICHresponse { Float_t fKy2; Float_t fKy4; Float_t fPitch; //anode-cathode pitch - char *fName; // Version Identifier + char *fName; //! Version Identifier }; #endif diff --git a/RICH/AliRICHdisplay.cxx b/RICH/AliRICHdisplay.cxx index 4364c8a5a04..4484c51a47b 100644 --- a/RICH/AliRICHdisplay.cxx +++ b/RICH/AliRICHdisplay.cxx @@ -625,8 +625,9 @@ void AliRICHdisplay::LoadDigits() AliRICHchamber* iChamber; AliRICHsegmentation* segmentation; Int_t NallDigits=0; + Int_t ich; - for (Int_t ich=0; ich<7; ich++) { + for (ich=0; ich<7; ich++) { TClonesArray *RICHdigits = RICH->DigitsAddress(ich); if (RICHdigits == 0) continue; gAlice->ResetDigits(); @@ -637,7 +638,7 @@ void AliRICHdisplay::LoadDigits() } if (fPoints == 0) fPoints = new TObjArray(NallDigits); Int_t counter=0; - for (Int_t ich=0; ich<7; ich++) { + for (ich=0; ich<7; ich++) { TClonesArray *RICHdigits = RICH->DigitsAddress(ich); if (RICHdigits == 0) continue; gAlice->ResetDigits();