From: SZEDER Gábor Date: Mon, 5 Sep 2022 18:50:04 +0000 (+0200) Subject: test-parse-options.c: don't use for loop initial declaration X-Git-Tag: v2.38.0-rc0~15^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6983f4e3b205a48cfcb76e14a8b275f9eb72936d;p=thirdparty%2Fgit.git test-parse-options.c: don't use for loop initial declaration We would like to eventually use for loop initial declarations in our codebase, but we are not there yet. Signed-off-by: SZEDER Gábor Signed-off-by: Junio C Hamano --- diff --git a/t/helper/test-parse-options.c b/t/helper/test-parse-options.c index aa0ad45851..9fe8ce66cb 100644 --- a/t/helper/test-parse-options.c +++ b/t/helper/test-parse-options.c @@ -195,7 +195,8 @@ int cmd__parse_options(int argc, const char **argv) static void print_args(int argc, const char **argv) { - for (int i = 0; i < argc; i++) + int i; + for (i = 0; i < argc; i++) printf("arg %02d: %s\n", i, argv[i]); }