diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-09-29 21:08:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-09-29 21:08:11 +0400 |
commit | 2a331067cc52693aa903a0487be29c93298c4b8b (patch) | |
tree | 814fba88bc5af1de58ea6ef12958e38daa1b9fb4 /source/blender/src/parametrizer.c | |
parent | 7ebeceb399002076106333202ec59483fc3ed4ba (diff) |
resolve some compiler warnings with intel c/c++ compiler
* subsurf code had a lot of unused variables, removed these where they are obviously not needed. commented if they could be useful later.
* some variables declorations hide existing variables (many of these left), but fixed some that could cause confusion.
* removed unused vars
* obscure python memory leak with colorband.
* make_sample_tables had a loop running wasnt used.
* if 0'd functions in arithb.c that are not used yet.
* made many functions static
Diffstat (limited to 'source/blender/src/parametrizer.c')
-rw-r--r-- | source/blender/src/parametrizer.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/src/parametrizer.c b/source/blender/src/parametrizer.c index 7aa27f99d77..1cf796d86bc 100644 --- a/source/blender/src/parametrizer.c +++ b/source/blender/src/parametrizer.c @@ -998,7 +998,7 @@ static float p_edge_boundary_angle(PEdge *e) static void p_chart_fill_boundary(PChart *chart, PEdge *be, int nedges) { PEdge *e, *e1, *e2; - PHashKey vkeys[3]; + PFace *f; struct Heap *heap = BLI_heap_new(); float angle; @@ -1036,9 +1036,9 @@ static void p_chart_fill_boundary(PChart *chart, PEdge *be, int nedges) e->flag |= PEDGE_FILLED; e1->flag |= PEDGE_FILLED; - vkeys[0] = e->vert->u.key; - vkeys[1] = e1->vert->u.key; - vkeys[2] = e2->vert->u.key; + + + f = p_face_add_fill(chart, e->vert, e1->vert, e2->vert); f->flag |= PFACE_FILLED; @@ -1078,11 +1078,11 @@ static void p_chart_fill_boundary(PChart *chart, PEdge *be, int nedges) static void p_chart_fill_boundaries(PChart *chart, PEdge *outer) { - PEdge *e, *enext, *be; + PEdge *e, *be; /* *enext - as yet unused */ int nedges; for (e=chart->edges; e; e=e->nextlink) { - enext = e->nextlink; + /* enext = e->nextlink; - as yet unused */ if (e->pair || (e->flag & PEDGE_FILLED)) continue; @@ -3199,7 +3199,7 @@ static PBool p_chart_convex_hull(PChart *chart, PVert ***verts, int *nverts, int return P_TRUE; } -float p_rectangle_area(float *p1, float *dir, float *p2, float *p3, float *p4) +static float p_rectangle_area(float *p1, float *dir, float *p2, float *p3, float *p4) { /* given 4 points on the rectangle edges and the direction of on edge, compute the area of the rectangle */ @@ -3342,7 +3342,7 @@ static float p_chart_minimum_area_angle(PChart *chart) return minangle; } -void p_chart_rotate_minimum_area(PChart *chart) +static void p_chart_rotate_minimum_area(PChart *chart) { float angle = p_chart_minimum_area_angle(chart); float sine = sin(angle); @@ -3541,7 +3541,7 @@ static float p_smooth_distortion(PEdge *e, float avg2d, float avg3d) return (len3d == 0.0f)? 0.0f: len2d/len3d; } -void p_smooth(PChart *chart) +static void p_smooth(PChart *chart) { PEdge *e; PVert *v; @@ -3964,7 +3964,7 @@ void param_construct_end(ParamHandle *handle, ParamBool fill, ParamBool impl) for (i = j = 0; i < phandle->ncharts; i++) { PVert *v; - PChart *chart = phandle->charts[i]; + chart = phandle->charts[i]; p_chart_boundaries(chart, &nboundaries, &outer); |