diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-23 11:46:41 -0400 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-24 15:14:59 -0400 |
commit | 4c96985af1b8870482b6b6ef9120960633f62cee (patch) | |
tree | 6ca875a85c153086750bf90be45a14fd4c9b636a /libavfilter | |
parent | 49d8a70dc51ea5f05d747b4acc4e772252e86cbc (diff) |
all: remove some casts of function pointer to void *
These casts are unnecessary, and may safely be removed.
Found by enabling -Wpedantic on clang 3.7.
Tested with FATE.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_drawtext.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_lut.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 8e21693534..5c4676e6a4 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -1087,7 +1087,7 @@ static int draw_glyphs(DrawTextContext *s, AVFrame *frame, continue; dummy.code = code; - glyph = av_tree_find(s->glyphs, &dummy, (void *)glyph_cmp, NULL); + glyph = av_tree_find(s->glyphs, &dummy, glyph_cmp, NULL); bitmap = borderw ? glyph->border_bitmap : glyph->bitmap; diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c index 7d708f615b..f0a2aba910 100644 --- a/libavfilter/vf_lut.c +++ b/libavfilter/vf_lut.c @@ -186,9 +186,9 @@ static double compute_gammaval709(void *opaque, double gamma) } static double (* const funcs1[])(void *, double) = { - (void *)clip, - (void *)compute_gammaval, - (void *)compute_gammaval709, + clip, + compute_gammaval, + compute_gammaval709, NULL }; |