[FFmpeg-devel] [PATCH] Current SVN doesn't build with gcc 4.2.x
Mon Jul 2 21:38:14 CEST 2007
On Monday 02 July 2007, Bernhard Rosenkraenzer wrote:
> On Monday 02 July 2007, Uoti Urpala wrote:
> > > ffmpeg.c:118: error: initializer element is not constant.
> > I see no such error on this machine.
> > gcc-4.2 (GCC) 4.2.1 20070627 (prerelease) (Debian 4.2-20070627-1)
> Happens here with
> gcc (GCC) 4.2.1 20070613 (prerelease)
> So either it was fixed between 20070613 and 20070627 or Debian is applying
> a patch...
Or it's caused by compiler flags.
I just talked to a gcc guy, this happens if gcc is run in C99 mode (-std=*99,
even gnu99), and not if it's run in one of the traditional modes.
Since gnu99 will be the default for gcc 4.3, the code should probably be
More information about the ffmpeg-devel