[Ffmpeg-devel] meta-discussion Re: [PATCH] part 8 - portability fixes (ILP32 vs LP64)

Måns Rullgård mru
Mon Jan 30 19:11:52 CET 2006


Dieter said:
>> What I'm complaining about is the inaccurate descriptions.
>
> I am sorry you do not like my description.
>
> Portability between CPU architectures requires, amoung other
> things, prototypes.

The C language does not require prototypes when the function definition
precedes the first use of it.  Prototypes are only required as forward
or extern declarations.  I have never heard of a compiler that required
prototypes in other situations, so adding them does nothing to enhance
portability.

> Therefore I turn on the prototype/decl related warnings.
>
> I view the resulting warnings, and their fixes, as being
> related to portability between CPU architectures.  You are
> of course welcome to view them differently, but I cannot
> read your mind.

If you turn up the warning levels to for whatever reason, that does not
make all warnings generated related to that reason.  Specifically, warnings
about missing prototypes never have anything to do with machine word size.

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





More information about the ffmpeg-devel mailing list