* fix a unused variable warning * if svnversion returns prose such as "exported" then discard that
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cec2d2..ee3fc99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -4,7 +4,10 @@ #if the svnversion program is absent, this will leave the SVN_REVISION string empty, #but won't stop CMake. execute_process(COMMAND svnversion -n ${CMAKE_SOURCE_DIR} - OUTPUT_VARIABLE EIGEN_SVN_REVISION) + OUTPUT_VARIABLE EIGEN_SVNVERSION_OUTPUT) + +#we only want EIGEN_SVN_REVISION if it is an actual revision number, not a string like "exported" +string(REGEX MATCH "^[0-9]+.*" EIGEN_SVN_REVISION "${EIGEN_SVNVERSION_OUTPUT}") if(EIGEN_SVN_REVISION) set(EIGEN_VERSION "${EIGEN_VERSION_NUMBER} (SVN revision ${EIGEN_SVN_REVISION})")
diff --git a/Eigen/src/Core/MatrixStorage.h b/Eigen/src/Core/MatrixStorage.h index 7d86957..fdf5449 100644 --- a/Eigen/src/Core/MatrixStorage.h +++ b/Eigen/src/Core/MatrixStorage.h
@@ -130,7 +130,7 @@ inline void swap(ei_matrix_storage& other) { std::swap(m_data,other.m_data); std::swap(m_cols,other.m_cols); } inline int rows(void) const {return _Rows;} inline int cols(void) const {return m_cols;} - inline void resize(int size, int, int cols) + inline void resize(int, int, int cols) { m_cols = cols; }