# HG changeset patch # User alpar # Date 1133970224 0 # Node ID c72636dcf0bd96d5733b8f6dcd57eb079d41f99d # Parent a68d4f93b1fb66f3fd404141b40fd033bd824338 Eliminate warnins diff -r a68d4f93b1fb -r c72636dcf0bd benchmark/graph-bench.cc --- a/benchmark/graph-bench.cc Wed Dec 07 15:40:27 2005 +0000 +++ b/benchmark/graph-bench.cc Wed Dec 07 15:43:44 2005 +0000 @@ -28,12 +28,14 @@ long long int count; for(count=0;count > SubNoCounter; _SubNoCounter(P &parent) :_parent(parent) {} - _SubNoCounter(P &parent,std::string title,std::ostream &os=std::cerr) + _SubNoCounter(P &parent,std::string,std::ostream &) :_parent(parent) {} - _SubNoCounter(P &parent,const char *title,std::ostream &os=std::cerr) + _SubNoCounter(P &parent,std::string) + :_parent(parent) {} + _SubNoCounter(P &parent,const char *,std::ostream &) + :_parent(parent) {} + _SubNoCounter(P &parent,const char *) :_parent(parent) {} ~_SubNoCounter() {} _SubNoCounter &operator++() { ++_parent; return *this;} @@ -82,7 +86,8 @@ int operator--(int) { _parent--; return 0;} _SubNoCounter &operator+=(int c) { _parent+=c; return *this;} _SubNoCounter &operator-=(int c) { _parent-=c; return *this;} - void reset(int c=0) {} + void reset(int) {} + void reset() {} operator int() {return 0;} }; @@ -154,15 +159,18 @@ typedef _SubNoCounter SubNoCounter; NoCounter() {} - NoCounter(std::string title,std::ostream &os=std::cerr) {} - NoCounter(const char *title,std::ostream &os=std::cerr) {} + NoCounter(std::string,std::ostream &) {} + NoCounter(const char *,std::ostream &) {} + NoCounter(std::string) {} + NoCounter(const char *) {} NoCounter &operator++() { return *this; } int operator++(int) { return 0; } NoCounter &operator--() { return *this; } int operator--(int) { return 0; } - NoCounter &operator+=(int c) { return *this;} - NoCounter &operator-=(int c) { return *this;} - void reset(int c=0) {} + NoCounter &operator+=(int) { return *this;} + NoCounter &operator-=(int) { return *this;} + void reset(int) {} + void reset() {} operator int() {return 0;} }; diff -r a68d4f93b1fb -r c72636dcf0bd lemon/lp_skeleton.cc --- a/lemon/lp_skeleton.cc Wed Dec 07 15:40:27 2005 +0000 +++ b/lemon/lp_skeleton.cc Wed Dec 07 15:43:44 2005 +0000 @@ -138,7 +138,7 @@ return UNKNOWN; } - bool LpSkeleton::_isBasicCol(int i) + bool LpSkeleton::_isBasicCol(int) { return true; } diff -r a68d4f93b1fb -r c72636dcf0bd lemon/time_measure.h --- a/lemon/time_measure.h Wed Dec 07 15:40:27 2005 +0000 +++ b/lemon/time_measure.h Wed Dec 07 15:43:44 2005 +0000 @@ -470,7 +470,11 @@ { public: ///\e - NoTimeReport(std::string title,std::ostream &os=std::cerr,bool run=true) {} + NoTimeReport(std::string,std::ostream &,bool) {} + ///\e + NoTimeReport(std::string,std::ostream &) {} + ///\e + NoTimeReport(std::string) {} ///\e Do nothing. ~NoTimeReport() {}