From 2344d62dfbb6f41318ea75fb610d1823baf23cfb Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 21 Oct 2009 10:56:31 +0000 Subject: Silencing some compiler warnings for mingw * Unused functions * Uninitialised vars --- source/blender/editors/physics/particle_edit.c | 4 ++-- source/blender/editors/physics/particle_object.c | 2 +- source/blender/editors/physics/physics_intern.h | 4 ---- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'source/blender/editors/physics') diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index be4df93eff3..9875051e1ad 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -851,7 +851,7 @@ static void pe_deflect_emitter(Scene *scene, Object *ob, PTCacheEdit *edit) ParticleSystemModifierData *psmd; POINT_P; KEY_K; int index; - float *vec, *nor, dvec[3], dot, dist_1st; + float *vec, *nor, dvec[3], dot, dist_1st=0.0f; float hairimat[4][4], hairmat[4][4]; if(edit==NULL || edit->psys==NULL || (pset->flag & PE_DEFLECT_EMITTER)==0 || (edit->psys->flag & PSYS_GLOBAL_HAIR)) @@ -2819,7 +2819,7 @@ static void brush_puff(PEData *data, int point_index) PTCacheEditPoint *point = edit->points + point_index; KEY_K; float mat[4][4], imat[4][4]; - float lastco[3], rootco[3], co[3], nor[3], kco[3], dco[3], fac, length; + float lastco[3], rootco[3], co[3], nor[3], kco[3], dco[3], fac=0.0f, length=0.0f; if(psys && !(psys->flag & PSYS_GLOBAL_HAIR)) { psys_mat_hair_to_global(data->ob, data->dm, psys->part->from, psys->particles + point_index, mat); diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c index 34e2b062e98..d227591739b 100644 --- a/source/blender/editors/physics/particle_object.c +++ b/source/blender/editors/physics/particle_object.c @@ -601,7 +601,7 @@ static void connect_hair(Scene *scene, Object *ob, ParticleSystem *psys) ParticleData *pa; PTCacheEdit *edit; PTCacheEditPoint *point; - PTCacheEditKey *ekey; + PTCacheEditKey *ekey = NULL; HairKey *key; BVHTreeFromMesh bvhtree; BVHTreeNearest nearest; diff --git a/source/blender/editors/physics/physics_intern.h b/source/blender/editors/physics/physics_intern.h index a930d8663dd..babaaefe155 100644 --- a/source/blender/editors/physics/physics_intern.h +++ b/source/blender/editors/physics/physics_intern.h @@ -36,10 +36,6 @@ struct wmOperatorType; /* particle_edit.c */ -int PE_poll(struct bContext *C); -int PE_hair_poll(struct bContext *C); -int PE_poll_3dview(struct bContext *C); - void PARTICLE_OT_select_all_toggle(struct wmOperatorType *ot); void PARTICLE_OT_select_first(struct wmOperatorType *ot); void PARTICLE_OT_select_last(struct wmOperatorType *ot); -- cgit v1.2.3