]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing clang warnings
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Nov 2011 10:56:20 +0000 (10:56 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Nov 2011 10:56:20 +0000 (10:56 +0000)
STEER/STEER/AliQACheckerBase.cxx
STEER/STEER/AliTriggerUtils.cxx
STEER/STEERBase/AliRefArray.h
STEER/STEERBase/TTreeStream.cxx

index 44a0e57a2db0a481637bbc0cc7a8cb0e3aaf6337..93847e6f3dccde9f92c529407559be78dd1226a8 100644 (file)
@@ -182,7 +182,7 @@ void AliQACheckerBase::PrivateCheck(Double_t * test, AliQAv1::ALITASK_t index, c
 }  
 
 //____________________________________________________________________________
-void AliQACheckerBase::Check(Double_t * test, AliQAv1::ALITASK_t task, TObjArray ** list, const AliDetectorRecoParam * recoParam
+void AliQACheckerBase::Check(Double_t * test, AliQAv1::ALITASK_t task, TObjArray ** list, const AliDetectorRecoParam * /* recoParam */
 {
   // Performs a basic checking
   // Compares all the histograms in the list
index 5289818ddc7661ed8cbcf90ea3bad88b6802fe00..0b6a3234103290ae027b63bb3dd30059c91a1a08 100644 (file)
@@ -121,17 +121,17 @@ Bool_t AliTriggerUtils::CheckConfiguration( TString& configfile, AliTriggerConfi
      if( !(trclass->CheckClass( cfg )) ) check = kFALSE;
      else {
        if (trclass->IsActive(cfg->GetInputs(),cfg->GetFunctions())) {
-        AliInfo( Form( "Trigger Class (%s) OK, class mask (0x%Lx)",
+        AliInfo( Form( "Trigger Class (%s) OK, class mask (0x%llx)",
                        trclass->GetName(), trclass->GetMask( ) ) );
        }
        else {
-        AliWarning( Form( "Trigger Class (%s) is NOT active, class mask (0x%Lx)",
+        AliWarning( Form( "Trigger Class (%s) is NOT active, class mask (0x%llx)",
                           trclass->GetName(), trclass->GetMask( ) ) );
        }
      }
      // check if condition mask is duplicated
      if( mask & trclass->GetMask() ) {
-       AliError( Form("Class (%s). The class mask (0x%Lx) is ambiguous. It was already defined",
+       AliError( Form("Class (%s). The class mask (0x%llx) is ambiguous. It was already defined",
                      trclass->GetName(), trclass->GetMask()  ) );
        check = kFALSE;
      }
index 18377d1b8ef1a47be088805f5a30dfa97dbc6ae5..b873aa0fe68f7f75cfeed5f7842cb24b50a514b8 100644 (file)
@@ -79,7 +79,7 @@ inline Int_t AliRefArray::GetReference(UInt_t from, UInt_t which) const
   if (ref<0) return which ? -1 : -(1+ref);             // just 1 reference
   int ref1 = ref;
   while(which && (ref1=(int)fRefInd[ref])) {ref=ref1;which--;} // search intil no references left
-  return which ? -1 : fRefBuff[ref]-1;
+  return which ? -1 : (Int_t) fRefBuff[ref]-1;
 }
 
 //____________________________________________________________________
index 88a676243a989c8fb2cd4055591e443a91c16772..6149ce5c0b30aa6a004bfa04fe7d80258cc158e6 100644 (file)
@@ -414,7 +414,7 @@ void TTreeStream::BuildTree(){
       snprintf(bname1,1000,"B%d",i);
     }
     else{
-      snprintf(bname1,1000,element->GetName());
+      snprintf(bname1,1000,"%s",element->GetName());
     }
     if (element->fClass){
       if (element->fClass->GetBaseClass("TClonesArray")){