[FFmpeg-devel] [PATCH] Current SVN doesn't build with gcc 4.2.x
    Uoti Urpala 
    uoti.urpala
       
    Mon Jul  2 20:27:31 CEST 2007
    
    
  
On Mon, 2007-07-02 at 18:50 +0100, M?ns Rullg?rd wrote:
> Bernhard Rosenkraenzer <bero at arklinux.org> writes:
> >> > ffmpeg.c:118: error: initializer element is not constant.
> Out of interest, is your gcc version happy if you change it to
> (const AVRational)?
With -std=gnu99 gcc won't compile that either.
> The compound literal construct is described in C99 section 6.5.2.5,
> should anyone care to try reading it.
That part won't say anything relevant I think. The relevant parts are
6.7.8 Initialization
"All the expressions in an initializer for an object that has static
storage duration shall be constant expressions or string literals."
and 6.6 Constant expressions, which doesn't list compound literals in
what is allowed as a constant expression in initializers.
    
    
More information about the ffmpeg-devel
mailing list