# HG changeset patch # User alpar # Date 1113920101 0 # Node ID ebdce4f68ac4e4fd3f032bfffd7550588e8c8754 # Parent bcfa3980b4322a4f3b999688dc53db5b6cd562d6 Get rid of all '-Wall -W' warnings. diff -r bcfa3980b432 -r ebdce4f68ac4 src/lemon/concept/graph_component.h --- a/src/lemon/concept/graph_component.h Tue Apr 19 13:33:44 2005 +0000 +++ b/src/lemon/concept/graph_component.h Tue Apr 19 14:15:01 2005 +0000 @@ -572,7 +572,7 @@ /// Copy constructor. /// - GraphIncIterator(GraphIncIterator const&) {} + GraphIncIterator(GraphIncIterator const& gi) :Edge(gi) {} /// Sets the iterator to the first edge incoming into or outgoing /// from the node. diff -r bcfa3980b432 -r ebdce4f68ac4 src/lemon/concept/maps.h --- a/src/lemon/concept/maps.h Tue Apr 19 13:33:44 2005 +0000 +++ b/src/lemon/concept/maps.h Tue Apr 19 14:15:01 2005 +0000 @@ -147,9 +147,9 @@ public: ///Returns a reference to the value associated to a key. - Reference operator[](const Key &i) { return tmp; } + Reference operator[](const Key &) { return tmp; } ///Returns a const reference to the value associated to a key. - ConstReference operator[](const Key &i) const + ConstReference operator[](const Key &) const { return tmp; } /// Sets the value associated with a key. void set(const Key &k,const Value &t) { operator[](k)=t; } diff -r bcfa3980b432 -r ebdce4f68ac4 src/test/maps_test.cc --- a/src/test/maps_test.cc Tue Apr 19 13:33:44 2005 +0000 +++ b/src/test/maps_test.cc Tue Apr 19 14:15:01 2005 +0000 @@ -12,10 +12,10 @@ class F { public: - B operator()(const A &a) const {return B();} + B operator()(const A &) const {return B();} }; -int func(A a) {return 3;} +int func(A) {return 3;} typedef ReadMap DoubleMap;