[Lemon-commits] [lemon_svn] alpar: r1820 - in hugo/trunk/src: lemon/concept test
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:47:57 CET 2006
Author: alpar
Date: Tue Apr 19 16:15:01 2005
New Revision: 1820
Modified:
hugo/trunk/src/lemon/concept/graph_component.h
hugo/trunk/src/lemon/concept/maps.h
hugo/trunk/src/test/maps_test.cc
Log:
Get rid of all '-Wall -W' warnings.
Modified: hugo/trunk/src/lemon/concept/graph_component.h
==============================================================================
--- hugo/trunk/src/lemon/concept/graph_component.h (original)
+++ hugo/trunk/src/lemon/concept/graph_component.h Tue Apr 19 16:15:01 2005
@@ -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.
Modified: hugo/trunk/src/lemon/concept/maps.h
==============================================================================
--- hugo/trunk/src/lemon/concept/maps.h (original)
+++ hugo/trunk/src/lemon/concept/maps.h Tue Apr 19 16:15:01 2005
@@ -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; }
Modified: hugo/trunk/src/test/maps_test.cc
==============================================================================
--- hugo/trunk/src/test/maps_test.cc (original)
+++ hugo/trunk/src/test/maps_test.cc Tue Apr 19 16:15:01 2005
@@ -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<A,double> DoubleMap;
More information about the Lemon-commits
mailing list