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

Michael Niedermayer michaelni
Mon Jun 4 12:05:37 CEST 2007


Hi

On Sun, Jun 03, 2007 at 01:48:01PM +0200, Christian Lohmaier wrote:
> Hi *,
> 
> 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.
> 
> Since I know that this compiler is pretty old, feel free to not apply
> the patch, just as you wish.
> 
> 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

patch ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070604/d2395660/attachment.pgp>



More information about the ffmpeg-devel mailing list