[FFmpeg-devel] [PATCH] incorrect return type for opt_bitrate/type safety

Dave Dodge dododge
Wed Jan 2 02:50:45 CET 2008


On Tue, Jan 01, 2008 at 08:17:44PM -0500, Rich Felker wrote:
> Is there any way to get gcc to give warnings (or better errors) for
> using obsolete nonstandard gccisms like this?

"-pedantic" will cause it to emit a warning for the old initialization
syntax.  But then you'll also need something like "-std=c99" to
prevent it from warning about the new initialization syntax.

And while I haven't actually tried it on the codebase, using those two
together will cause gcc to be start being pretty strict about what it
will accept, and may produce other unwanted warnings.

                                                  -Dave Dodge




More information about the ffmpeg-devel mailing list