From 664338aa494a5f57aef2d3ae94476b2d7727bd14 Mon Sep 17 00:00:00 2001 From: carl Date: Wed, 13 Feb 2019 00:17:45 +0800 Subject: [PATCH] Fix compilation issue on C90 compilers (gcc 4.8 was failing to compile with default flags) - updated following comment. --- plat/cpm/emu/biosbdos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plat/cpm/emu/biosbdos.c b/plat/cpm/emu/biosbdos.c index 4eb87aca4..91cb16638 100644 --- a/plat/cpm/emu/biosbdos.c +++ b/plat/cpm/emu/biosbdos.c @@ -88,6 +88,8 @@ void bios_coldboot(void) static void bios_warmboot(void) { + int word; + int offset = 1; dma = 0x0080; if (!user_command_line[0]) @@ -113,8 +115,6 @@ static void bios_warmboot(void) read(fd, &ram[0x0100], 0xFE00); close(fd); - int offset = 1; - int word; for (word = 1; user_command_line[word]; word++) { if (word > 1)