From fb7b9e5893a98cc41c6769383fe4bc4dbcc121e5 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sat, 15 Aug 2015 11:08:57 +0200 Subject: kern: fix compiler warning * kern/bootstrap.c (bootstrap_create): Move declaration of `n' into the #ifdef. --- kern/bootstrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern') diff --git a/kern/bootstrap.c b/kern/bootstrap.c index cb0f976..6ec110b 100644 --- a/kern/bootstrap.c +++ b/kern/bootstrap.c @@ -110,8 +110,8 @@ task_insert_send_right( void bootstrap_create(void) { int compat; - int n = 0; #ifdef MACH_XEN + int n = 0; struct multiboot_module *bmods = ((struct multiboot_module *) boot_info.mod_start); if (bmods) -- cgit v1.2.3