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

Måns Rullgård mru
Thu Feb 2 02:52:28 CET 2006


Alexander Strasser <eclipse7 at gmx.net> writes:

> Hi,
>
> M?ns Rullg?rd wrote:
>> Diego Biurrun <diego at biurrun.de> writes:
>> 
>> > On Tue, Jan 31, 2006 at 11:02:03PM +0100, Alexander Strasser wrote:
>> >> M?ns Rullg?rd CVS wrote:
>> >> > 
>> >> > Modified Files:
>> >> > 	qdm2.c 
>> >> > Log Message:
>> >> > add static keyword to some functions
>> >> > patch by Dieter <freebsd at sopwith solgatos com>
>> >> > 
>> >> > --- qdm2.c	14 Jan 2006 15:00:10 -0000	1.7
>> >> > +++ qdm2.c	30 Jan 2006 23:41:27 -0000	1.8
>> >> > @@ -230,7 +230,7 @@
>> >> >  static MPA_INT mpa_window[512] __attribute__((aligned(16)));
>> >> >  
>> >> >  
>> >> > -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?
>> 
>> Defining functions with unspecified arguments is allowed but bad.
>> With arguments unspecified the compiler can't report an error/warning
>> if the function is called with incorrect arguments.  What don't you
>> like about it?
>
>   i don't like the syntax - but it's ok if it helps preventing mistakes

The syntax is perfectly logical.  Void literally means "empty"; an
empty list of arguments, just like a "void" return type means the
function returns nothing.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-cvslog mailing list