Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7807)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7808)
@@ -45,4 +45,12 @@
    * mbase/MContinue.h:
      - some reformatting
+
+   * mreport/MReportStarguider.h:
+     - added enum for states
+     - added IsMonitoring member function
+
+   * msignal/MArrivalTimeCam.cc:
+     - fixed a problem which gave errors when compiling (introduced
+       with the latest change)
 
    * manalysis/MEventRateCalc.[h,cc], manalysis/MGeomApply.[h,cc],
@@ -101,4 +109,25 @@
      - removed MExtractSignalABcorr
 
+   * mbase/MArgs.cc, mbase/MContinue.cc, mbase/MEnv.cc, mbase/MGMap.[h,cc],
+     mbase/MGTask.h, mbase/MLogManip.h, mbase/MLogPlugin.h
+     mbase/MParContainer.cc, mbase/MParList.cc, mbase/MParameters.cc,
+     mbase/MSearch.cc, mbase/MStatusArray.h, mbase/MTask.cc,
+     mbase/MTaskList.[h,cc]:
+     - removed some unused parameters from function declaration
+
+   * mbase/MArray.h, mbase/MArrayB.h, mbase/MArrayD.h, mbase/MArrayF.h,
+     mbase/MArrayI.h, mbase/MArrayS.h, mbase/MDirIter.h, mbase/MLog.[h,cc],
+     mbase/MReadSocket.h, mbase/MTask.cc, mbase/MTaskList.[h,cc],
+     mbase/MTime.h:
+     - added explicit initialization of base class to copy ctor
+
+   * mbase/MDirIter.[h,cc], mbase/MLog.[h,cc], mbase/MRunIter.cc,
+     mbase/MZlib.cc:
+     - fixed some warnings about local overwrites of variable names
+
+   * mbase/MTaskList.[h,cc]:
+     - removed unsused second argument from CheckAddListTo
+     - allow 0 as the type argument which just keeps the input steam id
+       of the task
 
 
Index: trunk/MagicSoft/Mars/mbase/MArgs.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MArgs.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MArgs.cc	(revision 7808)
@@ -46,5 +46,5 @@
 using namespace std;
 
-void MArgsEntry::Print(const Option_t *o) const
+void MArgsEntry::Print(const Option_t *) const
 {
     gLog << all << *this << endl;
Index: trunk/MagicSoft/Mars/mbase/MArray.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MArray.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MArray.h	(revision 7808)
@@ -22,5 +22,5 @@
    MArray()                              { fN = 0; }
    MArray(UInt_t n)                      { fN = n; }
-   MArray(const MArray &a)               { fN = a.fN; }
+   MArray(const MArray &a) : TObject()   { fN = a.fN; }
    virtual ~MArray()                     { fN = 0; }
 
Index: trunk/MagicSoft/Mars/mbase/MArrayB.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MArrayB.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MArrayB.h	(revision 7808)
@@ -46,5 +46,5 @@
     }
 
-    MArrayB(const MArrayB &array)
+    MArrayB(const MArrayB &array) : MArray()
     {
         // Copy constructor.
Index: trunk/MagicSoft/Mars/mbase/MArrayD.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MArrayD.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MArrayD.h	(revision 7808)
@@ -37,5 +37,5 @@
     }
 
-    MArrayD(const MArrayD &array)
+    MArrayD(const MArrayD &array) : MArray()
     {
         // Copy constructor.
Index: trunk/MagicSoft/Mars/mbase/MArrayF.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MArrayF.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MArrayF.h	(revision 7808)
@@ -37,5 +37,5 @@
     }
 
-    MArrayF(const MArrayF &array)
+    MArrayF(const MArrayF &array) : MArray()
     {
         // Copy constructor.
Index: trunk/MagicSoft/Mars/mbase/MArrayI.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MArrayI.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MArrayI.h	(revision 7808)
@@ -36,5 +36,5 @@
     }
 
-    MArrayI(const MArrayI &array)
+    MArrayI(const MArrayI &array) : MArray()
     {
         // Copy constructor.
Index: trunk/MagicSoft/Mars/mbase/MArrayS.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MArrayS.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MArrayS.h	(revision 7808)
@@ -44,5 +44,5 @@
     }
 
-    MArrayS(const MArrayS &array)
+    MArrayS(const MArrayS &array) : MArray()
     {
         // Copy constructor.
Index: trunk/MagicSoft/Mars/mbase/MContinue.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MContinue.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MContinue.cc	(revision 7808)
@@ -231,5 +231,5 @@
 }
 
-void MContinue::Print(Option_t *o) const
+void MContinue::Print(Option_t *) const
 {
     *fLog << all << GetDescriptor() << ":";
Index: trunk/MagicSoft/Mars/mbase/MDirIter.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MDirIter.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MDirIter.cc	(revision 7808)
@@ -133,8 +133,8 @@
 
     // Create an iterator to iterate over all entries in the directory
-    MDirIter Next(dir);
+    MDirIter NextD(dir);
 
     TString c;
-    while (!(c=Next(kTRUE)).IsNull())
+    while (!(c=NextD(kTRUE)).IsNull())
     {
         // Do not process . and .. entries
@@ -155,7 +155,7 @@
 void MDirIter::Add(const MDirIter &iter)
 {
-    TIter Next(&iter.fList);
+    TIter NextD(&iter.fList);
     TObject *o=0;
-    while ((o=Next()))
+    while ((o=NextD()))
         fList.Add(o->Clone());
 }
@@ -347,7 +347,7 @@
 // matching entries are printed.
 //
-void MDirIter::Print(const Option_t *o) const
-{
-    TString s(o);
+void MDirIter::Print(const Option_t *opt) const
+{
+    TString s(opt);
     if (s.Contains("dbg", TString::kIgnoreCase))
         fList.Print();
@@ -355,21 +355,21 @@
     if (!s.Contains("all", TString::kIgnoreCase))
     {
-        TIter Next(&fList);
+        TIter NextD(&fList);
         TObject *o=NULL;
-        while ((o=Next()))
+        while ((o=NextD()))
             PrintEntry(*o);
         return;
     }
 
-    MDirIter Next(*this);
+    MDirIter NextD(*this);
     TString name;
     TString d;
-    while (!(name=Next()).IsNull())
+    while (!(name=NextD()).IsNull())
     {
-        const TString p = Next.fCurrentPath->GetName();
+        const TString p = NextD.fCurrentPath->GetName();
         if (p!=d)
         {
             d=p;
-            PrintEntry(*Next.fCurrentPath);
+            PrintEntry(*NextD.fCurrentPath);
         }
         cout << " " << name << endl;
@@ -385,5 +385,5 @@
 void MDirIter::Sort()
 {
-    MDirIter Next(*this);
+    MDirIter NextD(*this);
 
     TList l;
@@ -391,5 +391,5 @@
 
     TString name;
-    while (!(name=Next()).IsNull())
+    while (!(name=NextD()).IsNull())
         l.Add(new TNamed(name.Data(), ""));
 
@@ -404,6 +404,6 @@
     while ((o=NextN()))
     {
-        TString dir  = o->GetName();
-        TString name = o->GetName();
+        TString dir   = o->GetName();
+        TString fname = o->GetName();
 
         const Int_t last = dir.Last('/');
@@ -412,7 +412,7 @@
 
         dir.Remove(last);
-        name.Remove(0, last+1);
-
-        AddDirectory(dir, name);
+        fname.Remove(0, last+1);
+
+        AddDirectory(dir, fname);
     }
 }
Index: trunk/MagicSoft/Mars/mbase/MDirIter.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MDirIter.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MDirIter.h	(revision 7808)
@@ -30,11 +30,11 @@
         fList.SetOwner();
     }
-    MDirIter(const MDirIter &dir) : fNext(&fList), fDirPtr(NULL)
+    MDirIter(const MDirIter &dir) : TObject(), fNext(&fList), fDirPtr(NULL)
     {
         fList.SetOwner();
 
         TObject *o=NULL;
-        TIter Next(&dir.fList);
-        while ((o=Next()))
+        TIter NextD(&dir.fList);
+        while ((o=NextD()))
             AddDirectory(o->GetName(), o->GetTitle());
     }
@@ -62,6 +62,6 @@
     {
         UInt_t n = 0;
-        MDirIter Next(*this);
-        while (!Next().IsNull()) n++;
+        MDirIter NextD(*this);
+        while (!NextD().IsNull()) n++;
         return n;
     }
Index: trunk/MagicSoft/Mars/mbase/MEnv.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MEnv.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MEnv.cc	(revision 7808)
@@ -101,5 +101,5 @@
 //   --> we have to clone it ourself
 //
-TObject *MEnv::Clone(const char *newname) const
+TObject *MEnv::Clone(const char *) const
 {
     MEnv *env = new MEnv("/dev/null");
Index: trunk/MagicSoft/Mars/mbase/MGMap.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MGMap.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MGMap.cc	(revision 7808)
@@ -154,5 +154,5 @@
 // Delete all objects stored in the TExMap
 //
-void MGMap::Delete(Option_t *opt)
+void MGMap::Delete(Option_t *)
 {
     Long_t key, val;
@@ -420,5 +420,5 @@
 // Paint all elements to the pad by calling their Paint() function
 //
-void MGMap::Paint(Option_t *o)
+void MGMap::Paint(Option_t *)
 {
     Long_t key, val;
Index: trunk/MagicSoft/Mars/mbase/MGMap.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MGMap.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MGMap.h	(revision 7808)
@@ -32,6 +32,6 @@
     void     SetOwner(Bool_t o=kTRUE) { o ? SetBit(kIsOwner) : ResetBit(kIsOwner); }
     void     Add(TObject *k, TString *v=0);
-    void     Delete(Option_t *opt = "");
-    void     Clear(Option_t *o="") { TExMap::Delete(); }
+    void     Delete(Option_t *opt="");
+    void     Clear(Option_t *o="") { TExMap::Delete(o); }
 
     //    void   SetNoToolTips(Bool_t b=kTRUE) { b ? SetBit(kNoToolTips) : ResetBit(kNoToolTips); } // *TOGGLE* *GETTER=HasNoToolTips
Index: trunk/MagicSoft/Mars/mbase/MGTask.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MGTask.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MGTask.h	(revision 7808)
@@ -26,5 +26,5 @@
     MGGroupFrame *fFrame;     //!
 
-    virtual void CreateGuiElements(MGGroupFrame *f) {}
+    virtual void CreateGuiElements(MGGroupFrame *) {}
 
     void ShowGui();
Index: trunk/MagicSoft/Mars/mbase/MLog.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MLog.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MLog.cc	(revision 7808)
@@ -183,5 +183,5 @@
 // ofstream as the default output device
 //
-MLog::MLog(ofstream &out) : ostream(this), fPPtr(fBase), fEPtr(fBase+fgBufferSize), fOutputLevel(0), fDebugLevel((unsigned)-1), fDevice(eFile), fIsNull(kFALSE), fOut(&out), fOutAllocated(kFALSE), fGui(NULL), fNumLines(0)
+MLog::MLog(ofstream &sout) : ostream(this), fPPtr(fBase), fEPtr(fBase+fgBufferSize), fOutputLevel(0), fDebugLevel((unsigned)-1), fDevice(eFile), fIsNull(kFALSE), fOut(&sout), fOutAllocated(kFALSE), fGui(NULL), fNumLines(0)
 {
     Init();
@@ -193,5 +193,5 @@
 // TGTextView as the default output device
 //
-MLog::MLog(TGTextView &out) : ostream(this), fPPtr(fBase), fEPtr(fBase+fgBufferSize), fOutputLevel(0), fDebugLevel((unsigned)-1), fDevice(eGui), fOut(NULL), fOutAllocated(kFALSE), fGui(&out), fNumLines(0)
+MLog::MLog(TGTextView &sout) : ostream(this), fPPtr(fBase), fEPtr(fBase+fgBufferSize), fOutputLevel(0), fDebugLevel((unsigned)-1), fDevice(eGui), fOut(NULL), fOutAllocated(kFALSE), fGui(&sout), fNumLines(0)
 {
     Init();
@@ -276,5 +276,5 @@
 }
 
-void MLog::Output(ostream &out, int len)
+void MLog::Output(ostream &sout, int len)
 {
     if (!TestBit(eNoColors))
@@ -284,8 +284,8 @@
             // case 1: out << MLog::kReset; break; // all
         case 0:  break; // all = background color
-        case 1:  out << MLog::kRed;     break;  // err
-        case 2:  out << MLog::kYellow;  break;  // warn
-        case 3:  out << MLog::kGreen;   break;  // inf
-        default: out << MLog::kBlue;    break;  // all others (dbg)
+        case 1:  sout << MLog::kRed;     break;  // err
+        case 2:  sout << MLog::kYellow;  break;  // warn
+        case 3:  sout << MLog::kGreen;   break;  // inf
+        default: sout << MLog::kBlue;    break;  // all others (dbg)
         }
 
@@ -295,21 +295,21 @@
         const Int_t endline = fBase[len-1]=='\n' ? 1 : 0;
         // output text to screen (without trailing '\n')
-        out << TString(fBase, len-endline);
+        sout << TString(fBase, len-endline);
         // reset colors if working with colors
         if (!TestBit(eNoColors))
-            out << kReset;
+            sout << kReset;
         // output EOL of check found EOL
         if (endline)
         {
-            out << '\n';
+            sout << '\n';
             // Check whether text was underlined
             if (TestBit(kIsUnderlined) && TestBit(eNoColors))
             {
-                out << setw(len-1) << setfill('-') << "" << "\n";
+                sout << setw(len-1) << setfill('-') << "" << "\n";
                 ResetBit(kIsUnderlined);
             }
         }
     }
-    out.flush();
+    sout.flush();
 }
 
@@ -638,5 +638,5 @@
 //   Job1.MLog.NoColors
 //
-void MLog::WriteEnv(TEnv &env, TString prefix, Bool_t print) const
+void MLog::WriteEnv(TEnv &, TString prefix, Bool_t) const
 {
     if (!prefix.IsNull())
Index: trunk/MagicSoft/Mars/mbase/MLog.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MLog.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MLog.h	(revision 7808)
@@ -8,9 +8,9 @@
 #include <TString.h>
 #endif
-
+#ifndef ROOT_TSystem
 #include <TSystem.h>
+#endif
 
 #include <iostream>  // base classes for MLog
-
 
 class MArgs;
@@ -101,5 +101,5 @@
     MLog(const char *fname, int flag=-1);
 
-    MLog(MLog const& log) : ostream((std::streambuf*)&log)
+    MLog(MLog const& log) : std::ios(), std::streambuf(), ostream((std::streambuf*)&log), TObject()
     {
         fOutputLevel = log.fOutputLevel;
@@ -121,23 +121,23 @@
     void Underline();
 
-    void SetDebugLevel(int i)           { fDebugLevel  =  i;  }
-    int  GetDebugLevel() const          { return fDebugLevel; }
-    void SetOutputLevel(int i)          { fOutputLevel =  i;  }
-    void SetOutputDevice(int i)         { fDevice      =  i;  }
-    void EnableOutputDevice(Flags_t f)  { fDevice     |=  f;  }
-    void DisableOutputDevice(Flags_t f) { fDevice     &= ~f;  }
-    void operator=(ofstream &out)       { SetOutputFile(out); }
-    void operator=(TGTextView *out)     { SetOutputGui(out);  }
+    void SetDebugLevel(int i)           { fDebugLevel  =  i;   }
+    int  GetDebugLevel() const          { return fDebugLevel;  }
+    void SetOutputLevel(int i)          { fOutputLevel =  i;   }
+    void SetOutputDevice(int i)         { fDevice      =  i;   }
+    void EnableOutputDevice(Flags_t f)  { fDevice     |=  f;   }
+    void DisableOutputDevice(Flags_t f) { fDevice     &= ~f;   }
+    void operator=(ofstream &sout)      { SetOutputFile(sout); }
+    void operator=(TGTextView *sout)    { SetOutputGui(sout);  }
 
     Bool_t IsNullOutput() const { return fIsNull; }
     Bool_t IsOutputDeviceEnabled(int i) const { return fDevice & i; }
 
-    void SetOutputGui(TGTextView *out, int flag=-1)
-    {
-        fGui = out;
+    void SetOutputGui(TGTextView *sout, int flag=-1)
+    {
+        fGui = sout;
         CheckFlag(eGui, flag);
     }
 
-    void SetOutputFile(ofstream &out, int flag=-1)
+    void SetOutputFile(ofstream &sout, int flag=-1)
     {
         //
@@ -149,5 +149,5 @@
         //
         DeallocateFile();
-        fOut = &out;
+        fOut = &sout;
         CheckFlag(eFile, flag);
     }
Index: trunk/MagicSoft/Mars/mbase/MLogManip.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MLogManip.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MLogManip.h	(revision 7808)
@@ -12,5 +12,5 @@
 };
 
-inline std::ostream &operator<<(std::ostream &lout, MLogManip u)
+inline std::ostream &operator<<(std::ostream &lout, MLogManip)
 {
     MLog *log=dynamic_cast<MLog*>(lout.rdbuf());
Index: trunk/MagicSoft/Mars/mbase/MLogPlugin.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MLogPlugin.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MLogPlugin.h	(revision 7808)
@@ -9,5 +9,5 @@
 {
 public:
-    virtual void SetColor(int col) { }
+    virtual void SetColor(int) { }
     virtual void Underline() { }
     virtual void WriteBuffer(const char *str, int len) = 0;
Index: trunk/MagicSoft/Mars/mbase/MParContainer.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MParContainer.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MParContainer.cc	(revision 7808)
@@ -98,5 +98,5 @@
 //  MParContainer copy ctor
 //
-MParContainer::MParContainer(const MParContainer &named)
+MParContainer::MParContainer(const MParContainer &named) : TObject()
 {
     fName  = named.fName;
@@ -333,5 +333,5 @@
 //  container, overload this function.
 //
-void MParContainer::AsciiRead(istream &fin)
+void MParContainer::AsciiRead(istream &)
 {
     *fLog << warn << "To use the the ascii input of " << GetName();
@@ -682,5 +682,5 @@
 // gui elements to a macro-file.
 //
-void MParContainer::SavePrimitive(ostream &out, Option_t *o)
+void MParContainer::SavePrimitive(ostream &out, Option_t *)
 {
     static UInt_t uid = 0;
@@ -698,5 +698,5 @@
 }
 
-void MParContainer::SavePrimitive(ofstream &out, Option_t *o)
+void MParContainer::SavePrimitive(ofstream &out, Option_t *)
 {
     SavePrimitive(static_cast<ostream&>(out));
Index: trunk/MagicSoft/Mars/mbase/MParList.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MParList.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MParList.cc	(revision 7808)
@@ -100,5 +100,5 @@
 //  entries)
 //
-MParList::MParList(const MParList &ts, const char *name, const char *title)
+MParList::MParList(const MParList &ts, const char *name, const char *title) : MParContainer()
 {
     Init(name, title);
@@ -636,5 +636,5 @@
 //   print some information about the current status of MParList
 //
-void MParList::Print(Option_t *t) const
+void MParList::Print(Option_t *) const
 {
     *fLog << all << underline << GetDescriptor() << ":" << endl;
@@ -777,5 +777,5 @@
 //  compiled programs if you are not 100% sure what you are doing.
 //
-TObjArray MParList::CreateObjList(const char *cname, UInt_t first, const UInt_t last, const char *oname)
+TObjArray MParList::CreateObjList(const char *cname, UInt_t first, const UInt_t last, const char *)
 {
     TObjArray list;
@@ -841,5 +841,5 @@
 }
 
-void MParList::SavePrimitive(ostream &out, Option_t *o)
+void MParList::SavePrimitive(ostream &out, Option_t *)
 {
     Bool_t saved = IsSavedAsPrimitive();
Index: trunk/MagicSoft/Mars/mbase/MParameters.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MParameters.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MParameters.cc	(revision 7808)
@@ -81,15 +81,15 @@
 }
 
-void MParameterD::Print(Option_t *o) const
+void MParameterD::Print(Option_t *) const
 {
     *fLog << all << GetDescriptor() << ":  Val=" << fVal << endl;
 }
 
-void MParameterDerr::Print(Option_t *o) const
+void MParameterDerr::Print(Option_t *) const
 {
     *fLog << all << GetDescriptor() << ":  Val=" << GetVal() << "  Err=" << fErr << endl;
 }
 
-void MParameterI::Print(Option_t *o) const
+void MParameterI::Print(Option_t *) const
 {
     *fLog << all << GetDescriptor() << ":  Val=" << fVal << endl;
Index: trunk/MagicSoft/Mars/mbase/MReadSocket.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MReadSocket.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MReadSocket.h	(revision 7808)
@@ -34,5 +34,5 @@
 public:
     MReadSocket(int port=-1, int mtu=1500);
-    MReadSocket(MReadSocket const& log) : istream((std::streambuf*)&log)
+    MReadSocket(MReadSocket const& log) : std::ios(), std::streambuf(), istream((std::streambuf*)&log)
     {
     }
Index: trunk/MagicSoft/Mars/mbase/MRunIter.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MRunIter.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MRunIter.cc	(revision 7808)
@@ -64,8 +64,8 @@
       fmt = run>35487 ? "*_%08d_*_%s" : "*_%05d_*_%s";
 
-    MDirIter Next;
-    Next.AddDirectory(p, Form(fmt, run,fIsRawFile?"*.raw":"*.root"), -1);
+    MDirIter NextR;
+    NextR.AddDirectory(p, Form(fmt, run,fIsRawFile?"*.raw":"*.root"), -1);
 
-    const TString name(Next());
+    const TString name(NextR());
     if (name.IsNull())
         return 0;
Index: trunk/MagicSoft/Mars/mbase/MSearch.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MSearch.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MSearch.cc	(revision 7808)
@@ -185,5 +185,5 @@
 //  Process messages from the widgets.
 //
-Bool_t MSearch::ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2)
+Bool_t MSearch::ProcessMessage(Long_t msg, Long_t mp1, Long_t /*mp2*/)
 {
     // Can be found in WidgetMessageTypes.h
Index: trunk/MagicSoft/Mars/mbase/MStatusArray.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MStatusArray.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MStatusArray.h	(revision 7808)
@@ -31,5 +31,5 @@
 
     void Print(Option_t *o="") const;
-    void Print(Option_t *wildcard, Option_t *option) const
+    void Print(Option_t *wildcard, Option_t *) const
     {
         Print(wildcard);
@@ -38,5 +38,5 @@
     TObject *FindObject(const char *object, const char *base) const;
     TObject *FindObject(const char *object) const;
-    TObject *FindObject(const TObject *o) const { return 0; }
+    TObject *FindObject(const TObject *) const { return 0; }
 
     Int_t Read(const char *name=NULL);
Index: trunk/MagicSoft/Mars/mbase/MTask.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTask.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MTask.cc	(revision 7808)
@@ -196,5 +196,5 @@
 // Copy constructor.
 //
-MTask::MTask(MTask &t)
+MTask::MTask(MTask &t) : MInputStreamID()
 {
     fFilter = t.fFilter;
@@ -305,5 +305,5 @@
 // the virtual implementation returns kTRUE
 //
-Bool_t MTask::ReInit(MParList *pList)
+Bool_t MTask::ReInit(MParList *)
 {
     return kTRUE;
@@ -319,5 +319,5 @@
 // the virtual implementation returns kTRUE
 //
-Int_t MTask::PreProcess(MParList *pList)
+Int_t MTask::PreProcess(MParList *)
 {
     return kTRUE;
@@ -455,5 +455,5 @@
 // and afterwards set the filter for this task.
 //
-void MTask::SavePrimitive(ostream &out, Option_t *o)
+void MTask::SavePrimitive(ostream &out, Option_t *)
 {
     MParContainer::SavePrimitive(out);
Index: trunk/MagicSoft/Mars/mbase/MTaskList.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTaskList.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MTaskList.cc	(revision 7808)
@@ -108,5 +108,5 @@
 //   TaskList in the new TaskList.
 //
-MTaskList::MTaskList(MTaskList &ts)
+MTaskList::MTaskList(MTaskList &ts) : MTask()
 {
     fTasks->AddAll(ts.fTasks);
@@ -175,5 +175,5 @@
 }
 
-Bool_t MTaskList::CheckAddToList(MTask *task, const char *type, const MTask *where) const
+Bool_t MTaskList::CheckAddToList(MTask *task, /*const char *type,*/ const MTask *where) const
 {
     //
@@ -244,9 +244,11 @@
 
     // FIXME: We agreed to put the task into list in an ordered way.
-    if (!CheckAddToList(task, type, where))
+    if (!CheckAddToList(task, /*type,*/ where))
         return kFALSE;
 
-    *fLog << inf << "Adding " << task->GetName() << " to " << GetName() << " for " << type << "... " << flush;
-    task->SetStreamId(type);
+    const TString stream = type ? (TString)type : task->GetStreamId();
+
+    *fLog << inf << "Adding " << task->GetName() << " to " << GetName() << " for " << stream << "... " << flush;
+    task->SetStreamId(stream);
     task->SetBit(kMustCleanup);
     fTasks->AddBefore((TObject*)where, task);
@@ -272,9 +274,11 @@
 
     // FIXME: We agreed to put the task into list in an ordered way.
-    if (!CheckAddToList(task, type, where))
+    if (!CheckAddToList(task, /*type,*/ where))
         return kFALSE;
 
-    *fLog << inf << "Adding " << task->GetName() << " to " << GetName() << " for " << type << "... " << flush;
-    task->SetStreamId(type);
+    const TString stream = type ? (TString)type : task->GetStreamId();
+
+    *fLog << inf << "Adding " << task->GetName() << " to " << GetName() << " for " << stream << "... " << flush;
+    task->SetStreamId(stream);
     task->SetBit(kMustCleanup);
     fTasks->AddAfter((TObject*)where, task);
@@ -300,9 +304,11 @@
 
     // FIXME: We agreed to put the task into list in an ordered way.
-    if (!CheckAddToList(task, type))
+    if (!CheckAddToList(task/*, type*/))
         return kFALSE;
 
-    *fLog << inf << "Adding " << task->GetName() << " to " << GetName() << " for " << type << "... " << flush;
-    task->SetStreamId(type);
+    const TString stream = type ? (TString)type : task->GetStreamId();
+
+    *fLog << inf << "Adding " << task->GetName() << " to " << GetName() << " for " << stream << "... " << flush;
+    task->SetStreamId(stream);
     task->SetBit(kMustCleanup);
     fTasks->Add(task);
@@ -812,5 +818,5 @@
 // Call 'Print()' of all tasks
 //
-void MTaskList::Print(Option_t *t) const
+void MTaskList::Print(Option_t *) const
 {
     *fLog << all << underline << GetDescriptor() << ":" << endl;
@@ -1020,5 +1026,5 @@
         return kTRUE;
 
-    *fLog << inf << "Adding " << task->GetName() << " to " << GetName() << " for " << obj->GetStreamId() << "... " << flush;
+    *fLog << inf << "Replacing " << task->GetName() << " in " << GetName() << " for " << obj->GetStreamId() << "... " << flush;
     task->SetStreamId(obj->GetStreamId());
     task->SetBit(kMustCleanup);
Index: trunk/MagicSoft/Mars/mbase/MTaskList.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTaskList.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MTaskList.h	(revision 7808)
@@ -32,5 +32,5 @@
     void   Remove(MTask *task);
     void   StreamPrimitive(ostream &out) const;
-    Bool_t CheckAddToList(MTask *task, const char *tType, const MTask *where=NULL) const;
+    Bool_t CheckAddToList(MTask *task, /*const char *tType,*/ const MTask *where=NULL) const;
 
 public:
Index: trunk/MagicSoft/Mars/mbase/MTime.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTime.h	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MTime.h	(revision 7808)
@@ -62,5 +62,5 @@
     }
     MTime(Double_t mjd);
-    MTime(const MTime& t) : fMjd(t.fMjd), fTime(t.fTime), fNanoSec(t.fNanoSec)
+    MTime(const MTime& t) : MParContainer(), fMjd(t.fMjd), fTime(t.fTime), fNanoSec(t.fNanoSec)
     {
         Init(NULL, NULL);
Index: trunk/MagicSoft/Mars/mbase/MZlib.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MZlib.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mbase/MZlib.cc	(revision 7808)
@@ -81,5 +81,5 @@
 // pointers by calling setg
 //
-int MZlib::fill_buffer(int putback)
+int MZlib::fill_buffer(int iputback)
 {
     const int num = gzread(fFile, fBuffer+4, fgBufferSize-4);
@@ -88,5 +88,5 @@
 
     // reset buffer pointers
-    setg(fBuffer+(4-putback), fBuffer+4, fBuffer+4+num);
+    setg(fBuffer+(4-iputback), fBuffer+4, fBuffer+4+num);
 
     return num;
@@ -106,10 +106,10 @@
 
     // gptr()-eback(): if more than four bytes are already flushed
-    const int putback = gptr()-eback()>4 ? 4 : gptr()-eback();
+    const int iputback = gptr()-eback()>4 ? 4 : gptr()-eback();
 
     // Copy the last four bytes flushed into the putback area
-    memcpy(fBuffer+(4-putback), gptr()-putback, putback);
+    memcpy(fBuffer+(4-iputback), gptr()-iputback, iputback);
 
-    if (fill_buffer(putback)==EOF)
+    if (fill_buffer(iputback)==EOF)
         return EOF;
 
Index: trunk/MagicSoft/Mars/mjobs/MSequence.cc
===================================================================
--- trunk/MagicSoft/Mars/mjobs/MSequence.cc	(revision 7807)
+++ trunk/MagicSoft/Mars/mjobs/MSequence.cc	(revision 7808)
@@ -242,5 +242,5 @@
 
         TString n;
-        char *id="_";
+        const char *id="_";
         switch (type)
         {
