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
int main() { int a = 0; for (int i = 0; i < 10; i++) { int j = 5; a += j + i; } if (a != 0) { int b = 5; b--; } return 0; }
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel