[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14791] trunk/blender/source/blender: Fix compiler warnings in particle.c and editface.c.
Joshua Leung
aligorith at gmail.com
Sun May 11 14:57:01 CEST 2008
Revision: 14791
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14791
Author: aligorith
Date: 2008-05-11 14:57:01 +0200 (Sun, 11 May 2008)
Log Message:
-----------
Fix compiler warnings in particle.c and editface.c.
* unitialised/unused vars
Modified Paths:
--------------
trunk/blender/source/blender/python/api2_2x/Particle.c
trunk/blender/source/blender/src/editface.c
Modified: trunk/blender/source/blender/python/api2_2x/Particle.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Particle.c 2008-05-11 12:41:12 UTC (rev 14790)
+++ trunk/blender/source/blender/python/api2_2x/Particle.c 2008-05-11 12:57:01 UTC (rev 14791)
@@ -565,7 +565,6 @@
}else { /* no arg - return a list of bpy objs all P. systems */
PyObject *pylist;
- PyObject *pyobj;
int index = 0;
pylist = PyList_New( BLI_countlist( &G.main->particle ));
@@ -804,7 +803,7 @@
ParticleSystem *psys = 0L;
Object *ob = 0L;
PyObject *partlist,*seglist;
- PyObject* loc;
+ PyObject* loc = 0L;
ParticleCacheKey **cache,*path;
ParticleKey state;
float cfra=bsystem_time(ob,(float)CFRA,0.0);
@@ -952,7 +951,7 @@
static PyObject *Part_GetRot( BPy_PartSys * self, PyObject * args ){
ParticleSystem *psys = 0L;
Object *ob = 0L;
- PyObject *partlist;
+ PyObject *partlist = 0L;
PyObject* loc = 0L;
ParticleKey state;
int i;
Modified: trunk/blender/source/blender/src/editface.c
===================================================================
--- trunk/blender/source/blender/src/editface.c 2008-05-11 12:41:12 UTC (rev 14790)
+++ trunk/blender/source/blender/src/editface.c 2008-05-11 12:57:01 UTC (rev 14791)
@@ -151,6 +151,7 @@
return 1;
}
+#if 0 // not used
/* returns 0 if not found, otherwise 1 */
static int facesel_edge_pick(Mesh *me, short *mval, unsigned int *index)
{
@@ -175,6 +176,7 @@
return 1;
}
+#endif
/* only operates on the edit object - this is all thats needed at the moment */
static void uv_calc_center_vector(float *result, Object *ob, EditMesh *em)
@@ -958,7 +960,6 @@
EditVert *ev;
Heap *heap;
- EdgeHash *ehash;
float *cost;
int a, totvert=0, totedge=0, *nedges, *edges, *prevedge, mednum = -1, nedgeswap = 0;
More information about the Bf-blender-cvs
mailing list