[FFmpeg-devel] [PATCH] fix warnings in tree.c test

Benoit Fouet benoit.fouet
Tue Mar 31 09:47:17 CEST 2009


Hi,

attached patch to $subj:
libavutil/tree.c: In function ?print?:
libavutil/tree.c:170: warning: format ?%4d? expects type ?int?, but
argument 6 has type ?void *?
libavutil/tree.c: In function ?cmp?:
libavutil/tree.c:178: warning: pointer of type ?void *? used in subtraction
libavutil/tree.c: In function ?main?:
libavutil/tree.c:198: warning: passing argument 3 of ?av_tree_insert?
from incompatible pointer type
libavutil/tree.c:204: warning: passing argument 3 of ?av_tree_insert?
from incompatible pointer type
libavutil/tree.c:205: warning: passing argument 3 of ?av_tree_find? from
incompatible pointer type
libavutil/tree.c:205: warning: assignment makes integer from pointer
without a cast

note: yes, I also added a static keyword to cmp()

Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree.c.diff
Type: text/x-diff
Size: 876 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090331/5766bc22/attachment.diff>



More information about the ffmpeg-devel mailing list