summaryrefslogtreecommitdiff
path: root/debian/patches/fix-warnings0002-kern-fix-compiler-warning.patch
blob: 29b728787615de0ec09f6f4b0905df87475fcc40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 6eb7f63d2b38ebfe997be12ca32010a924c247e2 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: [PATCH gnumach 2/4] 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(-)

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)
-- 
2.1.4