[FFmpeg-devel] [PATCH] Fix compilation when only MPEG-1encoder is enabled

Dave Dodge dododge
Fri May 11 10:53:11 CEST 2007

On Thu, May 10, 2007 at 04:06:24PM +0200, Panagiotis Issaris wrote:
> One thing I'm wondering about though, could there be compilers that
> are stupid enough to just keep the code there even if the " if(0
> and" is there?


If I run this through tcc:

  void foo(void)
    if (0) bar();

it appears to generate both the call and a hard jump past it.  It
fails to link if no bar() function is present.

                                                  -Dave Dodge

More information about the ffmpeg-devel mailing list