[FFmpeg-devel] [PATCH] configure: remove the mixed declarations and code warning flag

Moritz Barsnick barsnick at gmx.net
Thu Feb 4 17:13:55 CET 2016


On Thu, Feb 04, 2016 at 17:04:20 +0100, ffmpeg-dev at c-14.de wrote:
> Just being pedantic, but -Wdeclaration-after-statement does not warn on
> any of those, see attached test file which compiles without errors with
> -Wall -Wpedantic -Werror -Wdeclaration-after-statement (at least on
> modern clang and gcc). No comment on the actual change.

Semi-ancient gcc (4.3.2 20081105 (Red Hat 4.3.2-7)) and okay-ish modern
icc (Intel(R) C Compiler XE for applications running on IA-32, Version
14.0.3.174 Build 20140422) both bail out. Both don't understand
"-Wpedantic", and both are fine with the rest only if you add
"-std=c99".

Just saying, not judging,
Moritz


More information about the ffmpeg-devel mailing list