From: Nick Clifton Date: Mon, 13 Jan 2020 17:28:41 +0000 (+0000) Subject: Moev declaration of loop variable outside of the loop. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c87c17c1c29078d221756e5dc373e09e03ca6755;p=binutils-gdb.git Moev declaration of loop variable outside of the loop. * objdump.c (disassemble_bytes): Remove C99-ism. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 863443556d9..3737672832a 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,6 @@ 2020-01-13 Nick Clifton + * objdump.c (disassemble_bytes): Remove C99-ism. * testsuite/binutils-all/debuginfod.exp: New tests. 2020-01-13 Thomas Troeger diff --git a/binutils/objdump.c b/binutils/objdump.c index a031e9de122..2090f527270 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -2623,8 +2623,9 @@ disassemble_bytes (struct disassemble_info * inf, size_t line_buffer_size = strlen (line_buffer); char last_color = 0; + size_t i; - for (size_t i = 0; i <= line_buffer_size; ++i) + for (i = 0; i <= line_buffer_size; ++i) { if (color_output) {