[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec qdm2.c,1.7,1.8

Erik Slagter erik
Wed Feb 1 12:20:35 CET 2006


On Tue, 2006-01-31 at 23:02 +0100, Alexander Strasser wrote:
> > -static void softclip_table_init() {
> > +static void softclip_table_init(void) {
> 
>   I somehow dislike this kind of changes. What does the standard say
> about this?

That in C++ these mean the same, but in ANSI C the semantics are
different; function() is an (obsolete) K&R C style forward declaration,
it basically means that the function can have any number and any types
of parameters, effectively completely preventing the compiler from doing
any sort of type checking.

This type of declaration has been obsolete for something like fifteen
years, I don't understand why it's still allowed, it's really crap.

Are there more instances like this in ffmpeg? I surely don't hope so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2771 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20060201/30fcd556/attachment.bin>



More information about the ffmpeg-cvslog mailing list