diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-03 04:52:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-03 04:52:28 +0300 |
commit | b45c3363fd65a734a87d0917988fda6ae9d9df3c (patch) | |
tree | 71a86ce7388b6b1829d06a48547943890363325a /source/blender/editors/sculpt_paint | |
parent | 9e5577db47c8b9c85d49bec0e0b8050dcae0b513 (diff) |
fix for some pedantic warnings.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 3c25d861d2f..ac563621f30 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1511,10 +1511,10 @@ static void wpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P if(mface->v4) (me->dvert+mface->v4)->flag= 1; if(brush->vertexpaint_tool==VP_BLUR) { - MDeformWeight *dw, *(*dw_func)(MDeformVert *, int); + MDeformWeight *dw, *(*dw_func)(MDeformVert *, const int); if(wp->flag & VP_ONLYVGROUP) - dw_func= (void *)defvert_find_index; /* uses a const, cast to quiet warning */ + dw_func= (MDeformWeight *(*)(MDeformVert *, const int))defvert_find_index; else dw_func= defvert_verify_index; |