revert part of 7a1dc20

These warnings are false positives & confuses intended logic to set dummy values.
This commit is contained in:
Campbell Barton 2015-01-12 11:42:20 +11:00
parent 1864253db0
commit f9c7cbd989
8 changed files with 10 additions and 12 deletions

@ -516,7 +516,7 @@ static bool spline_under_mouse_get(const bContext *C,
MaskLayer *mask_layer; MaskLayer *mask_layer;
int width, height; int width, height;
float pixel_co[2]; float pixel_co[2];
float closest_dist_squared = FLT_MAX; float closest_dist_squared;
MaskLayer *closest_layer = NULL; MaskLayer *closest_layer = NULL;
MaskSpline *closest_spline = NULL; MaskSpline *closest_spline = NULL;
bool undistort = false; bool undistort = false;
@ -2209,7 +2209,7 @@ static int mask_duplicate_exec(bContext *C, wmOperator *UNUSED(op))
} }
if (end >= start) { if (end >= start) {
int tot_point; int tot_point;
int tot_point_shape_start = 0; int tot_point_shape_start;
MaskSpline *new_spline = BKE_mask_spline_add(mask_layer); MaskSpline *new_spline = BKE_mask_spline_add(mask_layer);
MaskSplinePoint *new_point; MaskSplinePoint *new_point;
int b; int b;

@ -2272,7 +2272,7 @@ static void wpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P
float paintweight; float paintweight;
int *indexar; int *indexar;
float totw; float totw;
unsigned int index, totindex = 0; unsigned int index, totindex;
float alpha; float alpha;
float mval[2]; float mval[2];
bool use_vert_sel; bool use_vert_sel;

@ -350,7 +350,7 @@ static int sequencer_select_invoke(bContext *C, wmOperator *op, const wmEvent *e
} }
else if (left_right != SEQ_SELECT_LR_NONE) { else if (left_right != SEQ_SELECT_LR_NONE) {
/* use different logic for this */ /* use different logic for this */
float x = 0.0f; float x;
ED_sequencer_deselect_all(scene); ED_sequencer_deselect_all(scene);
switch (left_right) { switch (left_right) {

@ -5240,8 +5240,6 @@ static BMLoop *get_next_loop(BMVert *v, BMLoop *l,
float tvec[3]; float tvec[3];
float dist; float dist;
zero_v3(tvec);
if (bm_loop_calc_opposite_co(l_tmp, tdir, tvec)) { if (bm_loop_calc_opposite_co(l_tmp, tdir, tvec)) {
dist = len_v3v3(l_tmp->v->co, tvec); dist = len_v3v3(l_tmp->v->co, tvec);
} }

@ -1117,7 +1117,7 @@ static void createTransArmatureVerts(TransInfo *t)
bool mirror = ((arm->flag & ARM_MIRROR_EDIT) != 0); bool mirror = ((arm->flag & ARM_MIRROR_EDIT) != 0);
int total_mirrored = 0, i; int total_mirrored = 0, i;
int oldtot; int oldtot;
BoneInitData *bid = NULL; BoneInitData *bid;
t->total = 0; t->total = 0;
for (ebo = edbo->first; ebo; ebo = ebo->next) { for (ebo = edbo->first; ebo; ebo = ebo->next) {

@ -457,7 +457,7 @@ static void validate_solution(LaplacianSystem *sys, short flag, float lambda, fl
{ {
int i; int i;
float lam; float lam;
float vini = 0.0f, vend; float vini, vend;
if (flag & MOD_LAPLACIANSMOOTH_PRESERVE_VOLUME) { if (flag & MOD_LAPLACIANSMOOTH_PRESERVE_VOLUME) {
vini = compute_volume(sys->vertexCos, sys->mfaces, sys->numFaces); vini = compute_volume(sys->vertexCos, sys->mfaces, sys->numFaces);

@ -174,7 +174,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
MLoopUV **mloopuv_layers = BLI_array_alloca(mloopuv_layers, mloopuv_layers_tot); MLoopUV **mloopuv_layers = BLI_array_alloca(mloopuv_layers, mloopuv_layers_tot);
float uv_u_scale; float uv_u_scale;
float uv_v_minmax[2] = {FLT_MAX, -FLT_MAX}; float uv_v_minmax[2] = {FLT_MAX, -FLT_MAX};
float uv_v_range_inv = 0.0f; float uv_v_range_inv;
float uv_axis_plane[4]; float uv_axis_plane[4];
char axis_char = 'X'; char axis_char = 'X';
@ -194,7 +194,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
unsigned int edge_offset; unsigned int edge_offset;
MPoly *mpoly_orig = NULL, *mpoly_new, *mp_new; MPoly *mpoly_orig, *mpoly_new, *mp_new;
MLoop *mloop_orig, *mloop_new, *ml_new; MLoop *mloop_orig, *mloop_new, *ml_new;
MEdge *medge_orig, *med_orig, *med_new, *med_new_firstloop, *medge_new; MEdge *medge_orig, *med_orig, *med_new, *med_new_firstloop, *medge_new;
MVert *mvert_new, *mvert_orig, *mv_orig, *mv_new, *mv_new_base; MVert *mvert_new, *mvert_orig, *mv_orig, *mv_new, *mv_new_base;
@ -875,7 +875,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
const unsigned int step_last = step_tot - (close ? 1 : 2); const unsigned int step_last = step_tot - (close ? 1 : 2);
const unsigned int mpoly_index_orig = totpoly ? edge_poly_map[i] : UINT_MAX; const unsigned int mpoly_index_orig = totpoly ? edge_poly_map[i] : UINT_MAX;
const bool has_mpoly_orig = (mpoly_index_orig != UINT_MAX); const bool has_mpoly_orig = (mpoly_index_orig != UINT_MAX);
float uv_v_offset_a = 0.0f, uv_v_offset_b = 0.0f; float uv_v_offset_a, uv_v_offset_b;
const unsigned int mloop_index_orig[2] = { const unsigned int mloop_index_orig[2] = {
vert_loop_map ? vert_loop_map[medge_new[i].v1] : UINT_MAX, vert_loop_map ? vert_loop_map[medge_new[i].v1] : UINT_MAX,

@ -4304,7 +4304,7 @@ static void radial_control_cancel(bContext *C, wmOperator *op)
static int radial_control_modal(bContext *C, wmOperator *op, const wmEvent *event) static int radial_control_modal(bContext *C, wmOperator *op, const wmEvent *event)
{ {
RadialControl *rc = op->customdata; RadialControl *rc = op->customdata;
float new_value, dist = 0.0f, zoom[2]; float new_value, dist, zoom[2];
float delta[2], ret = OPERATOR_RUNNING_MODAL; float delta[2], ret = OPERATOR_RUNNING_MODAL;
bool snap; bool snap;
float angle_precision = 0.0f; float angle_precision = 0.0f;