]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removing compilation warnings.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Oct 2008 18:47:54 +0000 (18:47 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Oct 2008 18:47:54 +0000 (18:47 +0000)
13 files changed:
HLT/MUON/OfflineInterface/AliHLTMUONDigitPublisherComponent.cxx
HLT/MUON/OfflineInterface/AliHLTMUONESDMaker.cxx
HLT/MUON/OfflineInterface/AliHLTMUONRecHitsSource.cxx
HLT/MUON/OfflineInterface/AliHLTMUONRootifierComponent.cxx
HLT/MUON/OfflineInterface/AliHLTMUONTriggerRecordsSource.cxx
HLT/MUON/OnlineAnalysis/AliHLTMUONClusterFinderComponent.cxx
HLT/MUON/OnlineAnalysis/AliHLTMUONDecisionComponent.cxx
HLT/MUON/OnlineAnalysis/AliHLTMUONHitReconstructorComponent.cxx
HLT/MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSM.cxx
HLT/MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSMComponent.cxx
HLT/MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSMComponent.h
HLT/MUON/OnlineAnalysis/AliHLTMUONTriggerReconstructorComponent.cxx
HLT/MUON/utils/AliHLTMUONDataCheckerComponent.cxx

index ff254f4b16be02f6f03160bfbd86a252c938a64c..12a3c58346ed92b72b2bddeeb505553cb5fc0f9a 100644 (file)
@@ -445,9 +445,9 @@ int AliHLTMUONDigitPublisherComponent::DoInit(int argc, const char** argv)
                                HLTError("Expected a positive number after -firstevent.");
                                return -EINVAL;
                        }
-                       char* end = "";
+                       char* end = NULL;
                        long num = strtol(argv[i], &end, 0);
-                       if (*end != '\0' or num < 0) // Check if the conversion is OK.
+                       if ((end != NULL and *end != '\0') or num < 0) // Check if the conversion is OK.
                        {
                                HLTError("Expected a positive number after -firstevent"
                                        " but got: %s", argv[i]
index f3b22830921e18e2fe2a4f225b489563f260762c..cb4a6d22dcf8ba3b321e08d4cbc55964058e6993 100644 (file)
@@ -250,10 +250,12 @@ int AliHLTMUONESDMaker::DoEvent(
                                        HLTWarning("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                                DataType2Text(block->fDataType).c_str(), block->fSpecification
                                        );
+#ifdef __DEBUG
                                else
                                        HLTDebug("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                                DataType2Text(block->fDataType).c_str(), block->fSpecification
                                        );
+#endif
                        }
                }
        }
index 580e99ba896ac433dcb11c3cf8e2c222d83b3eb0..a65e47cb568a0c60de582e8ffd67adb40aab97e5 100644 (file)
@@ -172,9 +172,9 @@ int AliHLTMUONRecHitsSource::DoInit(int argc, const char** argv)
                                HLTError("Expected a positive number after -firstevent.");
                                return -EINVAL;
                        }
-                       char* end = "";
+                       char* end = NULL;
                        long num = strtol(argv[i], &end, 0);
-                       if (*end != '\0' or num < 0) // Check if the conversion is OK.
+                       if ((end != NULL and *end != '\0') or num < 0) // Check if the conversion is OK.
                        {
                                HLTError(
                                        "Expected a positive number after -firstevent"
index 2030f9bccf9b1820aa87d7b03f8eae1bd7cd143a..0c1ff340b983ef2bce378b30ae1305b7fd80bd29 100644 (file)
@@ -313,10 +313,12 @@ int AliHLTMUONRootifierComponent::DoEvent(
                                        HLTWarning("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                                DataType2Text(block->fDataType).c_str(), block->fSpecification
                                        );
+#ifdef __DEBUG
                                else
                                        HLTDebug("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                                DataType2Text(block->fDataType).c_str(), block->fSpecification
                                        );
+#endif
                        }
                }
        }
index dd588dcea508d06b46ce479569085f2cc206544e..aa6163dc31ed70286482bf4420b3ee24d4f6528d 100644 (file)
@@ -196,9 +196,9 @@ int AliHLTMUONTriggerRecordsSource::DoInit(int argc, const char** argv)
                                HLTError("Expected a positive number after -firstevent.");
                                return -EINVAL;
                        }
-                       char* end = "";
+                       char* end = NULL;
                        long num = strtol(argv[i], &end, 0);
-                       if (*end != '\0' or num < 0) // Check if the conversion is OK.
+                       if ((end != NULL and *end != '\0') or num < 0) // Check if the conversion is OK.
                        {
                                HLTError(Form(
                                        "Expected a positive number after -firstevent"
index b43f3c7a2be85e92bfb4f210e5c5788decdeb2cf..3bba05502f3d4174f324df7724551da17bf2f460 100644 (file)
@@ -205,7 +205,7 @@ int AliHLTMUONClusterFinderComponent::DoInit(int argc, const char** argv)
        
        if (not DelaySetup())
        {
-               int result = ReadConfigFromCDB();
+               result = ReadConfigFromCDB();
                if (result != 0)
                {
                        // Error messages already generated in ReadConfigFromCDB.
@@ -409,9 +409,9 @@ int AliHLTMUONClusterFinderComponent::DoEvent(
                AliHLTMUONRecHitsBlockWriter outBlock(buffer, bufferSize);
                outBlock.InitCommonHeader();
                AliHLTUInt32_t i = 0;
-               TIter next(clusterStore->CreateIterator());
+               TIter next2(clusterStore->CreateIterator());
                AliMUONVCluster* cluster = NULL;
-               while ( (cluster = static_cast<AliMUONVCluster*>(next())) != NULL )
+               while ( (cluster = static_cast<AliMUONVCluster*>(next2())) != NULL )
                {
                        AliHLTMUONRecHitStruct& hit = outBlock[i++];
                        hit.fFlags = AliHLTMUONUtils::PackRecHitFlags(
index d63ea24169b36bdb935140c91c3c6286e50256b4..0d7b93e2e68c06030b75c2bcdd96096fa49eb552 100644 (file)
@@ -316,7 +316,7 @@ int AliHLTMUONDecisionComponent::DoInit(int argc, const char** argv)
                if (not fLowPtCutSet or not fHighPtCutSet or not fLowMassCutSet or not fHighMassCutSet)
                {
                        HLTInfo("Loading cut parameters from CDB.");
-                       int result = ReadConfigFromCDB(
+                       result = ReadConfigFromCDB(
                                        not fLowPtCutSet, not fHighPtCutSet,
                                        not fLowMassCutSet, not fHighMassCutSet
                                );
@@ -467,10 +467,12 @@ int AliHLTMUONDecisionComponent::DoEvent(
                                HLTWarning("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                        DataType2Text(blocks[n].fDataType).c_str(), blocks[n].fSpecification
                                );
+#ifdef __DEBUG
                        else
                                HLTDebug("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                        DataType2Text(blocks[n].fDataType).c_str(), blocks[n].fSpecification
                                );
+#endif
                }
        }
        
index 54254f2577377868b3611f992878879598017674..49edcf1aa45d983e0103c90c90fa28233156bda6 100644 (file)
@@ -367,7 +367,7 @@ int AliHLTMUONHitReconstructorComponent::DoInit(int argc, const char** argv)
                        HLTInfo("Loading lookup table information from CDB for DDL %d (ID = %d).",
                                fDDL+1, AliHLTMUONUtils::DDLNumberToEquipId(fDDL)
                        );
-                       int result = ReadLutFromCDB();
+                       result = ReadLutFromCDB();
                        if (result != 0)
                        {
                                // Error messages already generated in ReadLutFromCDB.
@@ -380,7 +380,7 @@ int AliHLTMUONHitReconstructorComponent::DoInit(int argc, const char** argv)
        else
        {
                HLTInfo("Loading lookup table information from file %s.", lutFileName);
-               int result = ReadLookUpTable(lutFileName);
+               result = ReadLookUpTable(lutFileName);
                if (result != 0)
                {
                        // Error messages already generated in ReadLookUpTable.
@@ -397,7 +397,7 @@ int AliHLTMUONHitReconstructorComponent::DoInit(int argc, const char** argv)
                        HLTInfo("Loading DC cut parameters from CDB for DDL %d (ID = %d).",
                                fDDL+1, AliHLTMUONUtils::DDLNumberToEquipId(fDDL)
                        );
-                       int result = ReadDCCutFromCDB();
+                       result = ReadDCCutFromCDB();
                        if (result != 0)
                        {
                                // Error messages already generated in ReadDCCutFromCDB.
@@ -611,10 +611,12 @@ int AliHLTMUONHitReconstructorComponent::DoEvent(
                                HLTWarning("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                        DataType2Text(blocks[n].fDataType).c_str(), blocks[n].fSpecification
                                );
+#ifdef __DEBUG
                        else
                                HLTDebug("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                        DataType2Text(blocks[n].fDataType).c_str(), blocks[n].fSpecification
                                );
+#endif
                        
                        continue;
                }
index ce2c030c9bb0c35091f03e53e25e8a5b51828ec7..b3c4bcfec90f3e30833e209053d51b4dbfc13ec7 100644 (file)
@@ -200,6 +200,7 @@ AliHLTMUONRecHitStruct AliHLTMUONMansoTrackerFSM::AliLine::FindIntersectWithXYPl
        else
                t = 0;
        AliHLTMUONRecHitStruct p;
+       p.fFlags = 0;
        p.fX = fMx*t + fCx;
        p.fY = fMy*t + fCy;
        p.fZ = z;
index fa70206391c42dce00c4e82af394c2c6590584f8..9294e08f4bdc67c0d26d1992bff400b3129fdcb7 100644 (file)
@@ -21,7 +21,7 @@
 ///  @file   AliHLTMUONMansoTrackerFSMComponent.cxx
 ///  @author Artur Szostak <artursz@iafrica.com>,
 ///          Indranil Das <indra.das@saha.ac.in>
-///  @date   
+///  @date   18 Sep 2007
 ///  @brief  Implementation of AliHLTMUONMansoTrackerFSMComponent class.
 ///
 
@@ -406,7 +406,7 @@ int AliHLTMUONMansoTrackerFSMComponent::DoInit(int argc, const char** argv)
                {
                        HLTInfo("Loading configuration parameters from CDB.");
                        
-                       int result = ReadConfigFromCDB();
+                       result = ReadConfigFromCDB();
                        if (result != 0)
                        {
                                // Error messages already generated in ReadConfigFromCDB.
@@ -798,10 +798,12 @@ int AliHLTMUONMansoTrackerFSMComponent::DoEvent(
                                HLTWarning("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                        DataType2Text(blocks[n].fDataType).c_str(), blocks[n].fSpecification
                                );
+#ifdef __DEBUG
                        else
                                HLTDebug("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                        DataType2Text(blocks[n].fDataType).c_str(), blocks[n].fSpecification
                                );
+#endif
                }
        }
   
index d3a347395b7f679dc542f11641f9ab4f18e8df00..a3a300d19c2317e45f86e918f796cc90a90064f5 100644 (file)
@@ -23,7 +23,7 @@
 ///  @file   AliHLTMUONMansoTrackerFSMComponent.h
 ///  @author Artur Szostak <artursz@iafrica.com>,
 ///          Indranil Das <indra.das@saha.ac.in>
-///  @date   
+///  @date   18 Sep 2007
 ///  @brief  Tracker component for the dimuon HLT using the Manso algorithm
 ///          implemented as a finite state machine.
 ///
index 4442377083659894ae20cd67f5d709de48582fe1..4cbb99b60a8008ed314bd269967a52d9aa73cb5c 100644 (file)
@@ -432,7 +432,7 @@ int AliHLTMUONTriggerReconstructorComponent::DoInit(int argc, const char** argv)
                        HLTInfo("Loading lookup table information from CDB for DDL %d (ID = %d).",
                                fDDL+1, AliHLTMUONUtils::DDLNumberToEquipId(fDDL)
                        );
-                       int result = ReadLutFromCDB();
+                       result = ReadLutFromCDB();
                        if (result != 0)
                        {
                                // Error messages already generated in ReadLutFromCDB.
@@ -446,7 +446,7 @@ int AliHLTMUONTriggerReconstructorComponent::DoInit(int argc, const char** argv)
        else
        {
                HLTInfo("Loading lookup table information from file %s.", lutFileName);
-               int result = ReadLookUpTable(lutFileName);
+               result = ReadLookUpTable(lutFileName);
                if (result != 0)
                {
                        // Error messages already generated in ReadLookUpTable.
@@ -468,7 +468,7 @@ int AliHLTMUONTriggerReconstructorComponent::DoInit(int argc, const char** argv)
                                fDDL+1, AliHLTMUONUtils::DDLNumberToEquipId(fDDL)
                        );
                        
-                       int result = ReadConfigFromCDB(not fZmiddleSpecified, not fBLSpecified);
+                       result = ReadConfigFromCDB(not fZmiddleSpecified, not fBLSpecified);
                        if (result != 0)
                        {
                                // Error messages already generated in ReadConfigFromCDB.
@@ -613,10 +613,12 @@ int AliHLTMUONTriggerReconstructorComponent::DoEvent(
                                HLTWarning("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                        DataType2Text(blocks[n].fDataType).c_str(), blocks[n].fSpecification
                                );
+#ifdef __DEBUG
                        else
                                HLTDebug("Received a data block of a type we cannot handle: '%s', spec: 0x%X",
                                        DataType2Text(blocks[n].fDataType).c_str(), blocks[n].fSpecification
                                );
+#endif
                        
                        continue;
                }
index e494902a8587d254728efc2dfb3258989f24fda4..7231499a3f540c18fe65a360a03babbbd383cbb3 100644 (file)
@@ -391,12 +391,14 @@ int AliHLTMUONDataCheckerComponent::DoEvent(
                                                        DataType2Text(blocks[n].fDataType).c_str(),
                                                        blocks[n].fSpecification
                                                );
+#ifdef __DEBUG
                                        else
                                                HLTDebug("Received a data block of a type we cannot"
                                                        " handle: '%s', spec: 0x%8.8X",
                                                        DataType2Text(blocks[n].fDataType).c_str(),
                                                        blocks[n].fSpecification
                                                );
+#endif
                                }
                        }