[x264-devel] bug: static declaration follows non-static declaration

Kyle Husmann kyle.husmann at gmail.com
Sat Mar 18 23:57:28 CET 2006


Hi,
I was trying to compile the latest svn version of x264 with gcc4.  However,
it errored with:

> x264.c:77: error: static declaration of 'p_open_outfile' follows
> non-static declaration
> muxers.h:50: error: previous declaration of 'p_open_outfile' was here
> x264.c:78: error: static declaration of 'p_set_outfile_param' follows
> non-static declaration
> muxers.h:51: error: previous declaration of 'p_set_outfile_param' was here
> x264.c:79: error: static declaration of 'p_write_nalu' follows non-static
> declaration
> muxers.h:52: error: previous declaration of 'p_write_nalu' was here
> x264.c:80: error: static declaration of 'p_set_eop' follows non-static
> declaration
> muxers.h:53: error: previous declaration of 'p_set_eop' was here
> x264.c:81: error: static declaration of 'p_close_outfile' follows
> non-static declaration
> muxers.h:54: error: previous declaration of 'p_close_outfile' was here


I have made a patch to fix this.  I don't really know how to program, so I
probably violated some coding practices, but it works.  Hopefully someone
will fix this the correct way in the next release?

Thanks,
-Kyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/x264-devel/attachments/20060318/c87de56c/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc4.patch
Type: application/octet-stream
Size: 970 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/x264-devel/attachments/20060318/c87de56c/attachment.obj 


More information about the x264-devel mailing list