From 8fdebf24f4fe405c77f13a72c45cf0f8e6bc1f3f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 24 Apr 2011 10:51:45 +0000 Subject: harmless changes to quiet clang static check warnings. - made EXPANDED_AGRP take bAnimContext as an argument. - remove unneeded NULL check drawFacesColored functions. - comment some vars which are set but not used. --- source/blender/editors/curve/editcurve.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/curve') diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 1ab7acef861..9bae4ea6569 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -951,7 +951,7 @@ static void calc_shapeKeys(Object *obedit) ++i; } - fp+= 3; curofp+= 3; /* alphas */ + fp+= 3; /* alphas */ } else { for (j= 0; j < 3; ++j, ++i) { VECCOPY(fp, bezt->vec[j]); @@ -5662,7 +5662,7 @@ static int delete_exec(bContext *C, wmOperator *op) Curve *cu= obedit->data; EditNurb *editnurb= cu->editnurb; ListBase *nubase= &editnurb->nurbs; - Nurb *nu, *next, *nu1; + Nurb *nu, *nu1; BezTriple *bezt, *bezt1, *bezt2; BPoint *bp, *bp1, *bp2; int a, cut= 0, type= RNA_enum_get(op->ptr, "type"); @@ -5687,6 +5687,7 @@ static int delete_exec(bContext *C, wmOperator *op) if(type==0) { /* first loop, can we remove entire pieces? */ + Nurb *next; nu= nubase->first; while(nu) { next= nu->next; @@ -5815,7 +5816,6 @@ static int delete_exec(bContext *C, wmOperator *op) nu1= NULL; nuindex= 0; for(nu= nubase->first; nu; nu= nu->next) { - next= nu->next; if(nu->type == CU_BEZIER) { bezt= nu->bezt; for(a=0; apntsu-1; a++) { -- cgit v1.2.3