[FFmpeg-devel] [PATCH] indeo2.c:202:1: directives may not be used inside a macro argument (gcc 3.2)

Guillaume POIRIER poirierg
Mon Jun 4 10:25:56 CEST 2007


Hi,

On 6/3/07, Christian Lohmaier <cloph at openoffice.org> wrote:

> I'm not subcribed, so please CC me in replies.
>
> This simple patch allows to build ffmpeg with gcc 3.2.3
> It doesn't change functionality, only moves the #ifdef out of the
> parameter-list.

Wow, that's an oldie! It was introduced 2 years ago!
http://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec/indeo2.c?r1=4144&r2=4216


> Since I know that this compiler is pretty old, feel free to not apply
> the patch, just as you wish.

Is indeo2.c the only file that makes gcc-3.2.3 choke?

> For reference, the error the compiler spits out:
>
> indeo2.c:202:1: directives may not be used inside a macro argument
> indeo2.c:201:40: unterminated argument list invoking macro "init_vlc"
> indeo2.c: In function `ir2_decode_init':
> indeo2.c:203: `init_vlc' undeclared (first use in this function)
> indeo2.c:203: (Each undeclared identifier is reported only once
> indeo2.c:203: for each function it appears in.)
> indeo2.c:203: warning: left-hand operand of comma expression has no effect
> indeo2.c:203: warning: left-hand operand of comma expression has no effect
> indeo2.c:203: warning: left-hand operand of comma expression has no effect
> indeo2.c:203: syntax error before ')' token

The patch seems harmless to me, but I won't apply it unless Michael
gives his go-ahead: when compile problem like this are only reported 2
years after the regression is introduced, you're in the right to
assume that the environment on which it breaks (gcc-3.2.3) is seldom
used.

Although, if we want world domination, we probably want to fix these
king of issues ;-)

Guillaume
-- 
Y'a pas de gonzesse hooligan,
Imb?cile et meurtri?re
Y'en a pas m?me en grande Bretagne
A part bien s?r Madame Thatcher
  -- Renaud (sur "Miss Maggie")



More information about the ffmpeg-devel mailing list