fix clang warnings in some 3rd party libs
This commit is contained in:
@@ -367,11 +367,13 @@ bool
|
||||
TGaussInfo::TLess
|
||||
::operator()(const TGaussInfo& theLeft, const TGaussInfo& theRight) const
|
||||
{
|
||||
if(!&theLeft)
|
||||
return true;
|
||||
//clang: warning: reference cannot be bound to dereferenced null pointer in well-defined C++ code;
|
||||
// pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
|
||||
//if(!&theLeft)
|
||||
// return true;
|
||||
|
||||
if(!&theRight)
|
||||
return false;
|
||||
//if(!&theRight)
|
||||
// return false;
|
||||
|
||||
if(theLeft.myGeom != theRight.myGeom)
|
||||
return theLeft.myGeom < theRight.myGeom;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace KDL {
|
||||
|
||||
ChainDynParam::ChainDynParam(const Chain& _chain, Vector _grav):
|
||||
chain(_chain),
|
||||
nr(0),
|
||||
//nr(0),
|
||||
nj(chain.getNrOfJoints()),
|
||||
ns(chain.getNrOfSegments()),
|
||||
grav(_grav),
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace KDL {
|
||||
|
||||
private:
|
||||
const Chain chain;
|
||||
int nr;
|
||||
//int nr;
|
||||
unsigned int nj;
|
||||
unsigned int ns;
|
||||
Vector grav;
|
||||
|
||||
@@ -156,6 +156,7 @@ namespace KDL {
|
||||
|
||||
Vector Joint::JointOrigin() const
|
||||
{
|
||||
(void)inertia; (void)damping; (void)stiffness;
|
||||
return origin;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user