From 4b992c27bb1a88d1db4dc3d52842fa8fe326bb59 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 17 May 2015 16:43:57 +0300 Subject: [PATCH] Pivy: fix several warnings Warnings like: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds] All was due to small defined size of the onstack array. --- src/3rdParty/Pivy-0.5/coin_wrap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/3rdParty/Pivy-0.5/coin_wrap.cpp b/src/3rdParty/Pivy-0.5/coin_wrap.cpp index 2caf28d0f..6b1648057 100644 --- a/src/3rdParty/Pivy-0.5/coin_wrap.cpp +++ b/src/3rdParty/Pivy-0.5/coin_wrap.cpp @@ -343959,7 +343959,7 @@ fail: SWIGINTERN PyObject *_wrap_new_SbImage(PyObject *self, PyObject *args) { int argc; - PyObject *argv[2]; + PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; @@ -344142,7 +344142,7 @@ fail: SWIGINTERN PyObject *_wrap_SbImage_setValue(PyObject *self, PyObject *args) { int argc; - PyObject *argv[3]; + PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; @@ -344310,7 +344310,7 @@ fail: SWIGINTERN PyObject *_wrap_SbImage_setValuePtr(PyObject *self, PyObject *args) { int argc; - PyObject *argv[3]; + PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail;