Compiler warning: comparison of integers of different signs
Submitted by Tom de Geus
Assigned to Nobody
Link to original bugzilla bug (#1473)
Version: 3.3 (current stable)
Operating system: Mac OS
Description
I get the following compiler warning:
/usr/local/Cellar/eigen/3.3.4/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h:96:59: warning: comparison of integers of different signs:
'unsigned long' and 'Index' (aka 'long') [-Wsign-compare]
m_use_divisor(num_steps>1 && (numext::abs(high-low)+1)<num_steps)
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/usr/local/Cellar/eigen/3.3.4/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h:132:7: note: in instantiation of member function
'Eigen::internal::linspaced_op_impl<unsigned long, unsigned long, true>::linspaced_op_impl' requested here
: impl((num_steps==1 ? high : low),high,num_steps)
^
/usr/local/Cellar/eigen/3.3.4/include/eigen3/Eigen/src/Core/CwiseNullaryOp.h:271:48: note: in instantiation of member function
'Eigen::internal::linspaced_op<unsigned long, unsigned long>::linspaced_op' requested here
return DenseBase<Derived>::NullaryExpr(size, internal::linspaced_op<Scalar,PacketScalar>(low,high,size));
^
/usr/local/include/GooseMesh/GooseMesh/Mesh.h:68:25: note: in instantiation of member function 'Eigen::DenseBase<Eigen::Matrix<unsigned long, 1, -1,
1, 1, -1> >::LinSpaced' requested here
VecS dofs_vec = VecS::LinSpaced( nnodendim , 0 , nnodendim );
With the following compiler:
$ clang++ --version
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin