Make compiler happy, remove doubtful non init usage.
This commit is contained in:
		@@ -1922,7 +1922,7 @@ void makeBevelList(Object *ob)
 | 
				
			|||||||
	BevPoint *bevp, *bevp2, *bevp1 = NULL, *bevp0;
 | 
						BevPoint *bevp, *bevp2, *bevp1 = NULL, *bevp0;
 | 
				
			||||||
	float min, inp, x1, x2, y1, y2;
 | 
						float min, inp, x1, x2, y1, y2;
 | 
				
			||||||
	struct bevelsort *sortdata, *sd, *sd1;
 | 
						struct bevelsort *sortdata, *sd, *sd1;
 | 
				
			||||||
	int a, b, nr, poly, resolu, len=0;
 | 
						int a, b, nr, poly, resolu = 0, len = 0;
 | 
				
			||||||
	int do_tilt, do_radius;
 | 
						int do_tilt, do_radius;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	/* this function needs an object, because of tflag and upflag */
 | 
						/* this function needs an object, because of tflag and upflag */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1705,7 +1705,7 @@ static int sb_detect_vertex_collisionCached(float opco[3], float facenormal[3],
 | 
				
			|||||||
	GHash *hash;
 | 
						GHash *hash;
 | 
				
			||||||
	GHashIterator *ihash;
 | 
						GHashIterator *ihash;
 | 
				
			||||||
	float nv1[3], nv2[3], nv3[3], nv4[3], edge1[3], edge2[3],d_nvect[3], dv1[3],ve[3],avel[3]={0.0,0.0,0.0},
 | 
						float nv1[3], nv2[3], nv3[3], nv4[3], edge1[3], edge2[3],d_nvect[3], dv1[3],ve[3],avel[3]={0.0,0.0,0.0},
 | 
				
			||||||
    vv1[3], vv2[3], vv3[3], vv4[3], coledge[3], mindistedge = 1000.0f, 
 | 
					    vv1[3], vv2[3], vv3[3], vv4[3], coledge[3]={0.0f, 0.0f, 0.0f}, mindistedge = 1000.0f, 
 | 
				
			||||||
	outerforceaccu[3],innerforceaccu[3],
 | 
						outerforceaccu[3],innerforceaccu[3],
 | 
				
			||||||
		facedist,n_mag,force_mag_norm,minx,miny,minz,maxx,maxy,maxz,
 | 
							facedist,n_mag,force_mag_norm,minx,miny,minz,maxx,maxy,maxz,
 | 
				
			||||||
		innerfacethickness = -0.5f, outerfacethickness = 0.2f,
 | 
							innerfacethickness = -0.5f, outerfacethickness = 0.2f,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -207,7 +207,7 @@ void CutEdgeloop(Object *obedit, wmOperator *op, EditMesh *em, int numcuts)
 | 
				
			|||||||
	EditEdge *nearest=NULL, *eed;
 | 
						EditEdge *nearest=NULL, *eed;
 | 
				
			||||||
	float fac;
 | 
						float fac;
 | 
				
			||||||
	int keys = 0, holdnum=0, selectmode, dist;
 | 
						int keys = 0, holdnum=0, selectmode, dist;
 | 
				
			||||||
	short mvalo[2] = {0,0}, mval[2];
 | 
						short mvalo[2] = {0, 0}, mval[2] = {0, 0};
 | 
				
			||||||
	short event=0, val, choosing=1, cancel=0, cuthalf = 0, smooth=0;
 | 
						short event=0, val, choosing=1, cancel=0, cuthalf = 0, smooth=0;
 | 
				
			||||||
	short hasHidden = 0;
 | 
						short hasHidden = 0;
 | 
				
			||||||
	char msg[128];
 | 
						char msg[128];
 | 
				
			||||||
@@ -251,7 +251,7 @@ void CutEdgeloop(Object *obedit, wmOperator *op, EditMesh *em, int numcuts)
 | 
				
			|||||||
//			}
 | 
					//			}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else PIL_sleep_ms(10);	// idle		
 | 
							else PIL_sleep_ms(10);	// idle
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		while(qtest()) 
 | 
							while(qtest()) 
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2795,7 +2795,7 @@ static void brush_length(PEData *data, int point_index)
 | 
				
			|||||||
	PTCacheEdit *edit= data->edit;
 | 
						PTCacheEdit *edit= data->edit;
 | 
				
			||||||
	PTCacheEditPoint *point = edit->points + point_index;
 | 
						PTCacheEditPoint *point = edit->points + point_index;
 | 
				
			||||||
	KEY_K;
 | 
						KEY_K;
 | 
				
			||||||
	float dvec[3],pvec[3];
 | 
						float dvec[3],pvec[3] = {0.0f, 0.0f, 0.0f};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	LOOP_KEYS {
 | 
						LOOP_KEYS {
 | 
				
			||||||
		if(k==0) {
 | 
							if(k==0) {
 | 
				
			||||||
@@ -2819,7 +2819,7 @@ static void brush_puff(PEData *data, int point_index)
 | 
				
			|||||||
	PTCacheEditPoint *point = edit->points + point_index;
 | 
						PTCacheEditPoint *point = edit->points + point_index;
 | 
				
			||||||
	KEY_K;
 | 
						KEY_K;
 | 
				
			||||||
	float mat[4][4], imat[4][4];
 | 
						float mat[4][4], imat[4][4];
 | 
				
			||||||
	float lastco[3], rootco[3], co[3], nor[3], kco[3], dco[3], fac=0.0f, length=0.0f;
 | 
						float lastco[3], rootco[3] = {0.0f, 0.0f, 0.0f}, co[3], nor[3], kco[3], dco[3], fac=0.0f, length=0.0f;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if(psys && !(psys->flag & PSYS_GLOBAL_HAIR)) {
 | 
						if(psys && !(psys->flag & PSYS_GLOBAL_HAIR)) {
 | 
				
			||||||
		psys_mat_hair_to_global(data->ob, data->dm, psys->part->from, psys->particles + point_index, mat);
 | 
							psys_mat_hair_to_global(data->ob, data->dm, psys->part->from, psys->particles + point_index, mat);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -860,7 +860,7 @@ void sample_wpaint(Scene *scene, ARegion *ar, View3D *v3d, int mode)
 | 
				
			|||||||
	Object *ob= OBACT;
 | 
						Object *ob= OBACT;
 | 
				
			||||||
	Mesh *me= get_mesh(ob);
 | 
						Mesh *me= get_mesh(ob);
 | 
				
			||||||
	int index;
 | 
						int index;
 | 
				
			||||||
	short mval[2], sco[2];
 | 
						short mval[2] = {0, 0}, sco[2];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!me) return;
 | 
						if (!me) return;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -50,7 +50,7 @@ int text_do_suggest_select(SpaceText *st, ARegion *ar)
 | 
				
			|||||||
	TextLine *tmp;
 | 
						TextLine *tmp;
 | 
				
			||||||
	int l, x, y, w, h, i;
 | 
						int l, x, y, w, h, i;
 | 
				
			||||||
	int tgti, *top;
 | 
						int tgti, *top;
 | 
				
			||||||
	short mval[2];
 | 
						short mval[2] = {0, 0};
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	if(!st || !st->text) return 0;
 | 
						if(!st || !st->text) return 0;
 | 
				
			||||||
	if(!texttool_text_is_active(st->text)) return 0;
 | 
						if(!texttool_text_is_active(st->text)) return 0;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -94,7 +94,7 @@ static void view3d_boxview_clip(ScrArea *sa)
 | 
				
			|||||||
	ARegion *ar;
 | 
						ARegion *ar;
 | 
				
			||||||
	BoundBox *bb = MEM_callocN(sizeof(BoundBox), "clipbb");
 | 
						BoundBox *bb = MEM_callocN(sizeof(BoundBox), "clipbb");
 | 
				
			||||||
	float clip[6][4];
 | 
						float clip[6][4];
 | 
				
			||||||
	float x1= 0.0f, y1= 0.0f, z1= 0.0f, ofs[3];
 | 
						float x1= 0.0f, y1= 0.0f, z1= 0.0f, ofs[3] = {0.0f, 0.0f, 0.0f};
 | 
				
			||||||
	int val;
 | 
						int val;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* create bounding box */
 | 
						/* create bounding box */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -633,7 +633,7 @@ void CalcSnapGeometry(TransInfo *t, float *vec)
 | 
				
			|||||||
			DepthPeel *p1, *p2;
 | 
								DepthPeel *p1, *p2;
 | 
				
			||||||
			float *last_p = NULL;
 | 
								float *last_p = NULL;
 | 
				
			||||||
			float dist = FLT_MAX;
 | 
								float dist = FLT_MAX;
 | 
				
			||||||
			float p[3];
 | 
								float p[3] = {0.0f, 0.0f, 0.0f};
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			depth_peels.first = depth_peels.last = NULL;
 | 
								depth_peels.first = depth_peels.last = NULL;
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1168,7 +1168,7 @@ void GPU_color4_upload( DerivedMesh *dm, unsigned char *data )
 | 
				
			|||||||
void GPU_color_switch( int mode )
 | 
					void GPU_color_switch( int mode )
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if( mode ) {
 | 
						if( mode ) {
 | 
				
			||||||
		if( !GLStates & GPU_BUFFER_COLOR_STATE )
 | 
							if( !(GLStates & GPU_BUFFER_COLOR_STATE) )
 | 
				
			||||||
			glEnableClientState( GL_COLOR_ARRAY );
 | 
								glEnableClientState( GL_COLOR_ARRAY );
 | 
				
			||||||
		GLStates |= GPU_BUFFER_COLOR_STATE;
 | 
							GLStates |= GPU_BUFFER_COLOR_STATE;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1255,7 +1255,7 @@ CompBuf* qd_downScaledCopy(CompBuf* src, int scale)
 | 
				
			|||||||
		fbuf = alloc_compbuf(nw, nh, src->type, 1);
 | 
							fbuf = alloc_compbuf(nw, nh, src->type, 1);
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			int x, y, xx, yy, sx, sy, mx, my;
 | 
								int x, y, xx, yy, sx, sy, mx, my;
 | 
				
			||||||
			float colsum[4];
 | 
								float colsum[4] = {0.0f, 0.0f, 0.0f, 0.0f};
 | 
				
			||||||
			float fscale = 1.f/(float)(scale*scale);
 | 
								float fscale = 1.f/(float)(scale*scale);
 | 
				
			||||||
			for (y=0; y<nh; y++) {
 | 
								for (y=0; y<nh; y++) {
 | 
				
			||||||
				fRGB* fcolp = (fRGB*)&fbuf->rect[y*fbuf->x*fbuf->type];
 | 
									fRGB* fcolp = (fRGB*)&fbuf->rect[y*fbuf->x*fbuf->type];
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -118,7 +118,7 @@ static void unique_name(bNode *node)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	TexNodeOutput *tno = (TexNodeOutput *)node->storage;
 | 
						TexNodeOutput *tno = (TexNodeOutput *)node->storage;
 | 
				
			||||||
	char *new_name = 0;
 | 
						char *new_name = 0;
 | 
				
			||||||
	int new_len;
 | 
						int new_len = 0;
 | 
				
			||||||
	int suffix;
 | 
						int suffix;
 | 
				
			||||||
	bNode *i;
 | 
						bNode *i;
 | 
				
			||||||
	char *name = tno->name;
 | 
						char *name = tno->name;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1271,7 +1271,7 @@ static PyObject *Vector_getSwizzle(VectorObject * self, void *closure)
 | 
				
			|||||||
   unchanged. */
 | 
					   unchanged. */
 | 
				
			||||||
static int Vector_setSwizzle(VectorObject * self, PyObject * value, void *closure)
 | 
					static int Vector_setSwizzle(VectorObject * self, PyObject * value, void *closure)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	VectorObject *vecVal;
 | 
						VectorObject *vecVal = NULL;
 | 
				
			||||||
	PyObject *item;
 | 
						PyObject *item;
 | 
				
			||||||
	size_t listLen;
 | 
						size_t listLen;
 | 
				
			||||||
	float scalarVal;
 | 
						float scalarVal;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1590,7 +1590,7 @@ static int foreach_compat_buffer(RawPropertyType raw_type, int attr_signed, cons
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static PyObject *foreach_getset(BPy_PropertyRNA *self, PyObject *args, int set)
 | 
					static PyObject *foreach_getset(BPy_PropertyRNA *self, PyObject *args, int set)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *item;
 | 
						PyObject *item = NULL;
 | 
				
			||||||
	int i=0, ok, buffer_is_compat;
 | 
						int i=0, ok, buffer_is_compat;
 | 
				
			||||||
	void *array= NULL;
 | 
						void *array= NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -2677,7 +2677,7 @@ PyObject *BPY_rna_props( void )
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static StructRNA *pyrna_struct_as_srna(PyObject *self)
 | 
					static StructRNA *pyrna_struct_as_srna(PyObject *self)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	BPy_StructRNA *py_srna;
 | 
						BPy_StructRNA *py_srna = NULL;
 | 
				
			||||||
	StructRNA *srna;
 | 
						StructRNA *srna;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	/* ack, PyObject_GetAttrString wont look up this types tp_dict first :/ */
 | 
						/* ack, PyObject_GetAttrString wont look up this types tp_dict first :/ */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -594,7 +594,7 @@ void vol_precache_objectinstance_threads(Render *re, ObjectInstanceRen *obi, Mat
 | 
				
			|||||||
	ShadeInput shi;
 | 
						ShadeInput shi;
 | 
				
			||||||
	ListBase threads;
 | 
						ListBase threads;
 | 
				
			||||||
	float *bbmin=obi->obr->boundbox[0], *bbmax=obi->obr->boundbox[1];
 | 
						float *bbmin=obi->obr->boundbox[0], *bbmax=obi->obr->boundbox[1];
 | 
				
			||||||
	int parts[3], totparts;
 | 
						int parts[3] = {1, 1, 1}, totparts;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	int caching=1, counter=0;
 | 
						int caching=1, counter=0;
 | 
				
			||||||
	int totthread = re->r.threads;
 | 
						int totthread = re->r.threads;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user