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

ffmpeg-dev at c-14.de ffmpeg-dev at c-14.de
Thu Feb 4 17:04:20 CET 2016


On 16-02-04 at 15:48, Rostislav Pehlivanov wrote:
[..]
> This will essentially help bring the project to near 21st century age
> and finally allow for developers to save on line numbers by NOT having
> to define the variable around which a for loop needs to iterate (e.g.
> have for (int i = 0; i < N; i++) loops instead of having to define 'i'
> at the start of the function like a normal variable), as well as more of
> the syntactic sugar C99 permits.
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.

-- 
Simon Thelen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-c
Size: 140 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160204/479c5096/attachment.bin>


More information about the ffmpeg-devel mailing list