From d1898505ba697be964771051e18a8db4efe9beaf Mon Sep 17 00:00:00 2001 From: hristov Date: Wed, 6 Aug 2003 09:53:46 +0000 Subject: [PATCH] Cleaning of warnings (gcc -W) --- STEER/AliConfig.cxx | 1 + STEER/AliDataLoader.h | 2 +- STEER/AliDetector.cxx | 4 ++-- STEER/AliMemoryWatcher.cxx | 3 ++- STEER/AliMemoryWatcher.h | 6 +----- STEER/AliModule.cxx | 4 ++-- STEER/AliRunDigitizer.cxx | 7 ++++--- STEER/AliRunLoader.cxx | 6 +++--- 8 files changed, 16 insertions(+), 17 deletions(-) diff --git a/STEER/AliConfig.cxx b/STEER/AliConfig.cxx index 3f2c2ffcf83..e2f5dd36bbf 100644 --- a/STEER/AliConfig.cxx +++ b/STEER/AliConfig.cxx @@ -135,6 +135,7 @@ AliConfig::AliConfig(): //____________________________________________________________________________ AliConfig::AliConfig(const AliConfig& conf): + TNamed(conf), fTopFolder(0x0), fTaskFolder(0x0), fConstFolder(0x0), diff --git a/STEER/AliDataLoader.h b/STEER/AliDataLoader.h index a666403b62c..e04db605b4a 100644 --- a/STEER/AliDataLoader.h +++ b/STEER/AliDataLoader.h @@ -148,7 +148,7 @@ class AliBaseLoader: public TNamed virtual TObject* Get() const = 0; Bool_t IsLoaded()const{return fIsLoaded;} void SetDataLoader(AliDataLoader* dl){fDataLoader = dl;} - void SetEventFolder(TFolder* ef){;} + void SetEventFolder(TFolder* /*ef*/){;} void SetDoNotReload(Bool_t flag){fDoNotReload = flag;} Bool_t DoNotReload() const {return fDoNotReload;} TDirectory* GetDirectory();//returns pointer to directory where data are stored. diff --git a/STEER/AliDetector.cxx b/STEER/AliDetector.cxx index 59c815bb850..bea7d3b91ab 100644 --- a/STEER/AliDetector.cxx +++ b/STEER/AliDetector.cxx @@ -142,7 +142,7 @@ AliDetector::~AliDetector() } //_______________________________________________________________________ -void AliDetector::Publish(const char *dir, void *address, const char *name) +void AliDetector::Publish(const char */*dir*/, void */*address*/, const char */*name*/) { // // Register pointer to detector objects. @@ -163,7 +163,7 @@ TBranch* AliDetector::MakeBranchInTree(TTree *tree, const char* name, TBranch* AliDetector::MakeBranchInTree(TTree *tree, const char* name, const char *classname, void* address,Int_t size, - Int_t splitlevel, const char *file) + Int_t splitlevel, const char */*file*/) { // // Makes branch in given tree and diverts them to a separate file diff --git a/STEER/AliMemoryWatcher.cxx b/STEER/AliMemoryWatcher.cxx index 7134d17903d..0ffdad0c610 100644 --- a/STEER/AliMemoryWatcher.cxx +++ b/STEER/AliMemoryWatcher.cxx @@ -70,7 +70,8 @@ AliMemoryWatcher::AliMemoryWatcher(UInt_t maxsize) fTimer=0; } //_____________________________________________________________________________ -AliMemoryWatcher::AliMemoryWatcher(AliMemoryWatcher& mw) +AliMemoryWatcher::AliMemoryWatcher(const AliMemoryWatcher& mw): + TObject(mw) { //copy ctor fMAXSIZE = mw.fMAXSIZE ; diff --git a/STEER/AliMemoryWatcher.h b/STEER/AliMemoryWatcher.h index 45d065f95cc..2c31cdaf2f2 100644 --- a/STEER/AliMemoryWatcher.h +++ b/STEER/AliMemoryWatcher.h @@ -44,11 +44,7 @@ class AliMemoryWatcher : public TObject { public: AliMemoryWatcher(UInt_t maxsize=10000); - AliMemoryWatcher(AliMemoryWatcher& mw); - AliMemoryWatcher(const AliMemoryWatcher & watcher) { - // copy ctor: no implementation yet - Fatal("cpy ctor", "not implemented") ; - } + AliMemoryWatcher(const AliMemoryWatcher& mw); ~AliMemoryWatcher() ; void Watch(Int_t x); diff --git a/STEER/AliModule.cxx b/STEER/AliModule.cxx index fcf8d038d69..fac5840302c 100644 --- a/STEER/AliModule.cxx +++ b/STEER/AliModule.cxx @@ -736,7 +736,7 @@ void AliModule::ResetTrackReferences() //_____________________________________________________________________________ -AliLoader* AliModule::MakeLoader(const char* topfoldername) +AliLoader* AliModule::MakeLoader(const char* /*topfoldername*/) { return 0x0; }//skowron @@ -790,7 +790,7 @@ void AliModule::AddTrackReference(Int_t label){ //_____________________________________________________________________________ -void AliModule::MakeBranchTR(Option_t *option) +void AliModule::MakeBranchTR(Option_t */*option*/) { // // Makes branch in treeTR diff --git a/STEER/AliRunDigitizer.cxx b/STEER/AliRunDigitizer.cxx index 46e66985777..d35107c7c7e 100644 --- a/STEER/AliRunDigitizer.cxx +++ b/STEER/AliRunDigitizer.cxx @@ -185,6 +185,7 @@ AliRunDigitizer::AliRunDigitizer(Int_t nInputStreams, Int_t sperb): //_______________________________________________________________________ AliRunDigitizer::AliRunDigitizer(const AliRunDigitizer& dig): + TTask(dig), fkMASKSTEP(0), fOutputFileName(0), fOutputDirName(0), @@ -497,7 +498,7 @@ Int_t AliRunDigitizer::GetNParticles(Int_t event) const } //_______________________________________________________________________ -Int_t AliRunDigitizer::GetNParticles(Int_t event, Int_t input) const +Int_t AliRunDigitizer::GetNParticles(Int_t /*event*/, Int_t /*input*/) const { // return number of particles in input file input for a given // event (as numbered in this input file) @@ -523,7 +524,7 @@ Int_t* AliRunDigitizer::GetInputEventNumbers(Int_t event) const return a; } //_______________________________________________________________________ -Int_t AliRunDigitizer::GetInputEventNumber(Int_t event, Int_t input) const +Int_t AliRunDigitizer::GetInputEventNumber(Int_t event, Int_t /*input*/) const { // return an event number of an eventInput from input file input // which was merged to create output event event @@ -542,7 +543,7 @@ TParticle* AliRunDigitizer::GetParticle(Int_t i, Int_t event) const } //_______________________________________________________________________ -TParticle* AliRunDigitizer::GetParticle(Int_t i, Int_t input, Int_t event) const +TParticle* AliRunDigitizer::GetParticle(Int_t /*i*/, Int_t /*input*/, Int_t /*event*/) const { // return pointer to particle with index i in the input file input // (index without mask) diff --git a/STEER/AliRunLoader.cxx b/STEER/AliRunLoader.cxx index 3bbb95c605f..c1a6facd751 100644 --- a/STEER/AliRunLoader.cxx +++ b/STEER/AliRunLoader.cxx @@ -709,7 +709,7 @@ AliRun* AliRunLoader::GetAliRun() const } /**************************************************************************/ -Int_t AliRunLoader::WriteGeometry(Option_t* opt) +Int_t AliRunLoader::WriteGeometry(Option_t* /*opt*/) { //writes geometry to the file fGAFile->cd(); @@ -761,7 +761,7 @@ Int_t AliRunLoader::WriteHeader(Option_t* opt) } /**************************************************************************/ -Int_t AliRunLoader::WriteAliRun(Option_t* opt) +Int_t AliRunLoader::WriteAliRun(Option_t* /*opt*/) { //writes AliRun object to the file fGAFile->cd(); @@ -885,7 +885,7 @@ Int_t AliRunLoader::WriteTracks(Option_t* opt) } /**************************************************************************/ -Int_t AliRunLoader::WriteRunLoader(Option_t* opt) +Int_t AliRunLoader::WriteRunLoader(Option_t* /*opt*/) { //Writes itself to the file CdGAFile(); -- 2.39.3