]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixed warnings [-Wunused-but-set-variable] from GCC 4.6 -
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Oct 2011 07:27:00 +0000 (07:27 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Oct 2011 07:27:00 +0000 (07:27 +0000)
switching to that will sure cause a lot of people to get
their SVN commit rights revoked :-)

FMD/AliFMDDisplay.cxx
FMD/AliFMDFancy.cxx
FMD/AliFMDRawReader.cxx

index c79e64342592c8dc27505e3c2cf529bfeec36722..572a3815741686f4bf5a55ad85a8b98a907e157f 100644 (file)
@@ -249,9 +249,9 @@ AliFMDDisplay::ShowOnlyFMD()
   TGeoIterator next(top);
   TGeoNode* node;
   TGeoVolume* v = 0;
-  Bool_t hasFMD1 = kFALSE;
-  Bool_t hasFMD2 = kFALSE;
-  Bool_t hasFMD3 = kFALSE;
+  // Bool_t hasFMD1 = kFALSE;
+  // Bool_t hasFMD2 = kFALSE;
+  // Bool_t hasFMD3 = kFALSE;
   AliFMDDebug(1, ("Getting material FMD_Si$"));
   TGeoMaterial* si   = gGeoManager->GetMaterial("FMD_Si$");      // kRed 
   AliFMDDebug(1, ("Getting material FMD_Carbon$"));
@@ -285,13 +285,13 @@ AliFMDDisplay::ShowOnlyFMD()
       }
       if (name[2] == 'M' && (name[3] == 'T' || name[3] == 'B')) {
        // Virtual Master half-ring volume - top-level
-       Int_t det = node->GetNumber();
-       switch (det) {
-       case 1: hasFMD1 = true; break;
-       case 2: hasFMD2 = true; break;
-       case 3: hasFMD3 = true; break;
-       default: continue;
-       }
+       // Int_t det = node->GetNumber();
+       /* switch (det) {
+          case 1: hasFMD1 = true; break;
+          case 2: hasFMD2 = true; break;
+          case 3: hasFMD3 = true; break;
+          default: continue;
+          } */
        toshow.Add(v);
       }
       else if (name[3] == 'V' && (name[2] == 'T' || name[2] == 'B')) 
index 19097d4daf2cb9c5ed3b29055144a2b44f1f945e..72e07e7ab7252aef1703b3b0e79df55ca9c172e9 100644 (file)
@@ -168,7 +168,7 @@ AliFMDFancy::AliFancyDetector::Init()
       Int_t          nv = vs.GetEntries();
       Double_t       a  = TMath::Pi() / 180 * (m * 2 + 1) * ring->GetTheta();
       TGraph2D*      g  = new TGraph2D(nv);
-      Double_t       x0 = 0, y0 = 0, z0 = 0;
+      // Double_t       x0 = 0, y0 = 0, z0 = 0;
       Double_t       z  = zd + (m % 2==0 ? 0 : 
                                TMath::Sign(ring->GetModuleSpacing(), zd));
       minZ              = TMath::Min(minZ, z);
@@ -178,7 +178,7 @@ AliFMDFancy::AliFancyDetector::Init()
       for (Int_t c = 0; c < nv; c++) {
        TVector2* v = static_cast<TVector2*>(vs.At(nv - 1 - c));
        TVector2  w(v->Rotate(a));
-       if (c == 0) { x0 = w.X(); y0 = w.Y(); z0 = z; }
+       // if (c == 0) { x0 = w.X(); y0 = w.Y(); z0 = z; }
        g->SetPoint(c, w.X(), w.Y(), z);
        maxR        = TMath::Max(maxR, v->Mod());
       }
index ec366527dacdab9b800667f002d5ccde77dc7c63..a8ff830de5cae01fa5f1e59cba3f77e84d138731 100644 (file)
@@ -446,7 +446,7 @@ AliFMDRawReader::NextSample(UShort_t& det, Char_t&   rng, UShort_t& sec,
   static Short_t             tstr     = 0;   
   static Short_t             bstr     = -1;
   static UShort_t            tsam     = 0;   
-  static UInt_t              trate    = 0;
+  // static UInt_t           trate    = 0;
   static Int_t               hwaddr   = -1;
   static UShort_t            start    = 0;
   static UShort_t            length   = 0;
@@ -463,7 +463,7 @@ AliFMDRawReader::NextSample(UShort_t& det, Char_t&   rng, UShort_t& sec,
 
     // Reset variables
     ddl    = -1;  
-    trate  = 0;   
+    // trate= 0;   
     tdet   = 0;   
     trng   = '\0';
     tsec   = 0;