diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-13 18:06:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-13 18:06:02 +0300 |
commit | f15956356c7706c93152f4267cd1cea24b2c9e30 (patch) | |
tree | 0b91608e19ce81285823ba8559cfdc118ee220e8 /source/blender/python/api2_2x | |
parent | 6d6f5bbc1a79c2ed2fb8ce84dd4fc23e4763d926 (diff) |
misc warning fixes and one fix for a big in curve allocation
Diffstat (limited to 'source/blender/python/api2_2x')
-rw-r--r-- | source/blender/python/api2_2x/Geometry.c | 2 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Key.c | 4 | ||||
-rw-r--r-- | source/blender/python/api2_2x/sceneSequence.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/Geometry.c b/source/blender/python/api2_2x/Geometry.c index 344fdcf20a9..842479e35fb 100644 --- a/source/blender/python/api2_2x/Geometry.c +++ b/source/blender/python/api2_2x/Geometry.c @@ -287,7 +287,7 @@ static PyObject *M_Geometry_ClosestPointOnLine( PyObject * self, PyObject * args VectorObject *pt, *line_1, *line_2; float pt_in[3], pt_out[3], l1[3], l2[3]; float lambda; - PyObject *ret, *val1, *val2; + PyObject *ret; if( !PyArg_ParseTuple ( args, "O!O!O!", &vector_Type, &pt, diff --git a/source/blender/python/api2_2x/Key.c b/source/blender/python/api2_2x/Key.c index 88facd80b4e..90a628152e0 100644 --- a/source/blender/python/api2_2x/Key.c +++ b/source/blender/python/api2_2x/Key.c @@ -41,6 +41,7 @@ #include <BKE_main.h> #include <BKE_curve.h> #include <BKE_library.h> +#include <BKE_utildefines.h> #include "BIF_space.h" #include "Ipocurve.h" @@ -60,9 +61,6 @@ #define KEY_TYPE_CURVE 1 #define KEY_TYPE_LATTICE 2 -/* macro from blenkernel/intern/key.c:98 */ -#define GS(a) (*((short *)(a))) - static int Key_compare( BPy_Key * a, BPy_Key * b ); static PyObject *Key_repr( BPy_Key * self ); static void Key_dealloc( BPy_Key * self ); diff --git a/source/blender/python/api2_2x/sceneSequence.c b/source/blender/python/api2_2x/sceneSequence.c index c2cd7d090c3..86e36655c28 100644 --- a/source/blender/python/api2_2x/sceneSequence.c +++ b/source/blender/python/api2_2x/sceneSequence.c @@ -536,7 +536,7 @@ static int Sequence_setImages( BPy_Sequence * self, PyObject *value ) Strip *strip; StripElem *se; int i; - PyObject *list, *item; + PyObject *list; char *basepath, *name; if (self->seq->type != SEQ_IMAGE) { |