Pivy: Fix a compiller warning with wrong check
Warning was:
src/3rdParty/Pivy-0.5/coin_wrap.cpp|244969 col 15| warning: comparison of function 'time' not equal to a null pointer is always true [-Wtautological-pointer-compare]
|| if (time != NULL) {
|| ^~~~ ~~~~
This one supposed to be a copy-paste typo.
This commit is contained in:
committed by
wmayer
parent
6a18530a8d
commit
554d8f4078
2
src/3rdParty/Pivy-0.5/coin_wrap.cpp
vendored
2
src/3rdParty/Pivy-0.5/coin_wrap.cpp
vendored
@@ -244966,7 +244966,7 @@ SWIGINTERN PyObject *_wrap_SoMFPlane_setValues(PyObject *SWIGUNUSEDPARM(self), P
|
||||
SbPlane * plane = NULL;
|
||||
PyObject * item = PyList_GetItem(obj3,i);
|
||||
SWIG_ConvertPtr(item, (void **) &plane, SWIGTYPE_p_SbPlane, 1);
|
||||
if (time != NULL) {
|
||||
if (plane != NULL) {
|
||||
arg4[i] = *plane;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user