aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2009-10-14 19:55:23 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2009-10-14 19:55:23 +0200
commit0927ba1fd328b23b88b0c9b44eecfd99494c2007 (patch)
tree846c0f44050b90343020b9fa0e8b729a3805d31c
parentc37cfc32b34f29cea9d7622ca07b74faceba87b7 (diff)
More warning fixes.
-rw-r--r--Eigen/src/Core/Swap.h3
-rw-r--r--test/visitor.cpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/Eigen/src/Core/Swap.h b/Eigen/src/Core/Swap.h
index a7cf219f7..45c180983 100644
--- a/Eigen/src/Core/Swap.h
+++ b/Eigen/src/Core/Swap.h
@@ -117,6 +117,9 @@ template<typename ExpressionType> class SwapWrapper
protected:
ExpressionType& m_expression;
+
+ private:
+ SwapWrapper& operator=(const SwapWrapper&);
};
/** swaps *this with the expression \a other.
diff --git a/test/visitor.cpp b/test/visitor.cpp
index b78782b78..6ec442bc8 100644
--- a/test/visitor.cpp
+++ b/test/visitor.cpp
@@ -40,7 +40,7 @@ template<typename MatrixType> void matrixVisitor(const MatrixType& p)
m(i) = ei_random<Scalar>();
Scalar minc = Scalar(1000), maxc = Scalar(-1000);
- int minrow,mincol,maxrow,maxcol;
+ int minrow=0,mincol=0,maxrow=0,maxcol=0;
for(int j = 0; j < cols; j++)
for(int i = 0; i < rows; i++)
{
@@ -86,7 +86,7 @@ template<typename VectorType> void vectorVisitor(const VectorType& w)
v(i) = ei_random<Scalar>();
Scalar minc = Scalar(1000), maxc = Scalar(-1000);
- int minidx,maxidx;
+ int minidx=0,maxidx=0;
for(int i = 0; i < size; i++)
{
if(v(i) < minc)