From 554d8f4078468f4de427b3a8b118f31c752be90f Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 17 May 2015 16:30:53 +0300 Subject: [PATCH] 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. --- src/3rdParty/Pivy-0.5/coin_wrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/3rdParty/Pivy-0.5/coin_wrap.cpp b/src/3rdParty/Pivy-0.5/coin_wrap.cpp index ee304d61f..2caf28d0f 100644 --- a/src/3rdParty/Pivy-0.5/coin_wrap.cpp +++ b/src/3rdParty/Pivy-0.5/coin_wrap.cpp @@ -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; } }