summaryrefslogtreecommitdiff
path: root/debian/patches/fix-warnings0003-vm-fix-compiler-warning.patch
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-15 12:11:18 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-15 12:11:18 +0200
commit7c802101c6d7213ed2b5d97f6575837721f0944f (patch)
tree07dfd55e3f5f2dc25db25058197650a0fb239e4a /debian/patches/fix-warnings0003-vm-fix-compiler-warning.patch
parente1088b79f99036d8dd66ea2f944d5fe0643a49c6 (diff)
add patch series
Diffstat (limited to 'debian/patches/fix-warnings0003-vm-fix-compiler-warning.patch')
-rw-r--r--debian/patches/fix-warnings0003-vm-fix-compiler-warning.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/fix-warnings0003-vm-fix-compiler-warning.patch b/debian/patches/fix-warnings0003-vm-fix-compiler-warning.patch
new file mode 100644
index 0000000..5a27696
--- /dev/null
+++ b/debian/patches/fix-warnings0003-vm-fix-compiler-warning.patch
@@ -0,0 +1,34 @@
+From 8259090d7394b667fbca4d4b05153e980a39db6b Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Sat, 15 Aug 2015 11:29:27 +0200
+Subject: [PATCH gnumach 3/3] vm: fix compiler warning
+
+* vm/vm_user.c (vm_wire): Drop unused but set variable `host'.
+---
+ vm/vm_user.c | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/vm/vm_user.c b/vm/vm_user.c
+index 8c7a5d8..c71e9f5 100644
+--- a/vm/vm_user.c
++++ b/vm/vm_user.c
+@@ -412,7 +412,6 @@ kern_return_t vm_wire(port, map, start, size, access)
+ vm_size_t size;
+ vm_prot_t access;
+ {
+- host_t host;
+ boolean_t priv;
+
+ if (!IP_VALID(port))
+@@ -430,8 +429,6 @@ kern_return_t vm_wire(port, map, start, size, access)
+ priv = ip_kotype(port) == IKOT_HOST_PRIV;
+ ip_unlock(port);
+
+- host = (host_t) port->ip_kobject;
+-
+ if (map == VM_MAP_NULL)
+ return KERN_INVALID_TASK;
+
+--
+2.1.4
+