Thomas Huth c9d6da3a5e hw/i386: Fix compiler warning when CONFIG_IDE_ISA is disabled
When CONFIG_IDE_ISA is disabled, compilation currently fails:

 hw/i386/pc_piix.c: In function ‘pc_init1’:
 hw/i386/pc_piix.c:81:9: error: unused variable ‘i’ [-Werror=unused-variable]

Move the variable declaration to the right code block to avoid
this problem.

Fixes: 4501d317b50e ("hw/i386/pc: Extract pc_i8259_create()")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20191115145049.26868-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-11-19 10:01:33 +01:00
..
2019-08-16 13:31:52 +02:00
2019-08-21 09:13:37 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:53 +02:00
2019-10-15 18:09:04 +01:00
2019-08-16 13:31:53 +02:00
2019-09-20 14:08:10 -05:00
2019-08-16 13:31:53 +02:00
2019-11-05 18:52:29 +01:00
2019-11-08 21:32:31 +01:00
2019-10-28 19:06:47 +01:00
2019-11-14 09:53:28 -08:00
2019-10-26 15:38:02 +02:00
2019-10-15 18:09:04 +01:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:53 +02:00
2019-10-18 20:38:10 -07:00