Get rid of all '-Wall -W' warnings.
authoralpar
Tue, 19 Apr 2005 14:15:01 +0000
changeset 1375ebdce4f68ac4
parent 1374 bcfa3980b432
child 1376 8de0c1aeeb32
Get rid of all '-Wall -W' warnings.
src/lemon/concept/graph_component.h
src/lemon/concept/maps.h
src/test/maps_test.cc
     1.1 --- a/src/lemon/concept/graph_component.h	Tue Apr 19 13:33:44 2005 +0000
     1.2 +++ b/src/lemon/concept/graph_component.h	Tue Apr 19 14:15:01 2005 +0000
     1.3 @@ -572,7 +572,7 @@
     1.4        
     1.5        /// Copy constructor.
     1.6        ///
     1.7 -      GraphIncIterator(GraphIncIterator const&) {}
     1.8 +      GraphIncIterator(GraphIncIterator const& gi) :Edge(gi) {}
     1.9        /// Sets the iterator to the first edge incoming into or outgoing 
    1.10        /// from the node.
    1.11        
     2.1 --- a/src/lemon/concept/maps.h	Tue Apr 19 13:33:44 2005 +0000
     2.2 +++ b/src/lemon/concept/maps.h	Tue Apr 19 14:15:01 2005 +0000
     2.3 @@ -147,9 +147,9 @@
     2.4      public:
     2.5  
     2.6        ///Returns a reference to the value associated to a key.
     2.7 -      Reference operator[](const Key &i) { return tmp; }
     2.8 +      Reference operator[](const Key &) { return tmp; }
     2.9        ///Returns a const reference to the value associated to a key.
    2.10 -      ConstReference operator[](const Key &i) const
    2.11 +      ConstReference operator[](const Key &) const
    2.12        { return tmp; }
    2.13        /// Sets the value associated with a key.
    2.14        void set(const Key &k,const Value &t) { operator[](k)=t; }
     3.1 --- a/src/test/maps_test.cc	Tue Apr 19 13:33:44 2005 +0000
     3.2 +++ b/src/test/maps_test.cc	Tue Apr 19 14:15:01 2005 +0000
     3.3 @@ -12,10 +12,10 @@
     3.4  class F
     3.5  {
     3.6  public:
     3.7 -  B operator()(const A &a) const {return B();}
     3.8 +  B operator()(const A &) const {return B();}
     3.9  };
    3.10  
    3.11 -int func(A a) {return 3;}
    3.12 +int func(A) {return 3;}
    3.13  
    3.14  typedef ReadMap<A,double> DoubleMap;
    3.15