diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2006-11-11 00:54:05 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:26:53 +0200 |
commit | 84fa0626bc30ee2d3dee6c7f8629b4994caf2e68 (patch) | |
tree | c3d32f3c2a73d77cbd02d2b431e417e66cc13c99 /device | |
parent | 350415bcec5377422a8dd5e5ef4d1429e60851c3 (diff) |
2006-11-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
Fix a bunch of "unused variable" warnings.
* device/ds_routines.c (ds_device_open): Remove unused `namebuf'
variable.
* device/kmsg.c (kmsgread): Remove unused `err' variable.
* device/net_io.c (net_set_filter): Remove unused `j' variable.
* i386/i386/pcb.c (curr_gdt, curr_ktss): Artificially use parameter of
macro.
* i386/i386/pic.c (picinit): Remove unused `i' variable.
* i386/i386/pit.c (clkstart): Remove unused `flags' variable.
* i386/i386/trap.c (kernel_trap): Remove unused `exc' variable.
(user_trap): Remove unused `map' and `result' variables.
(v86_assist): Remove unused `size' variable.
* i386/i386at/i386at_ds_routines.c (ds_device_open): Remove unused
`dev' variable.
* i386/i386at/kd.c (kdintr): Remove unused `o_pri' variable.
(kdcngetc): Remove unused `i' variable.
* i386/i386at/kd_event.c (kbdgetstat, kbdsetstat): Remove unused
`result' variable.
* i386/i386at/kd_mouse.c (mousegetstat): Likewise.
* i386/i386at/lpr.c (lprattach): Remove unused `tp' variable.
(lprsetstat): Remove unused `dev_addr' and `s' variables.
* i386/intel/pmap.c (pmap_bootstrap): Remove unused `pteva' variable.
* ipc/ipc_kmsg.c (ipc_kmsg_copyin_body): Remove unused `mr' variable.
* kern/bootstrap.c (boot_script_exec_cmd): Remove unused
`boot_exec_info' and `user_map' variables.
* vm/vm_kern.c (projected_buffer_map): Remove unused `object'
variable.
Diffstat (limited to 'device')
-rw-r--r-- | device/ds_routines.c | 1 | ||||
-rw-r--r-- | device/kmsg.c | 1 | ||||
-rw-r--r-- | device/net_io.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/device/ds_routines.c b/device/ds_routines.c index 371bbb8..303d6f7 100644 --- a/device/ds_routines.c +++ b/device/ds_routines.c @@ -109,7 +109,6 @@ ds_device_open(open_port, reply_port, reply_port_type, register mach_device_t device; register kern_return_t result; register io_req_t ior; - char namebuf[64]; ipc_port_t notify; #ifndef i386 diff --git a/device/kmsg.c b/device/kmsg.c index d1612ad..384f89a 100644 --- a/device/kmsg.c +++ b/device/kmsg.c @@ -147,7 +147,6 @@ kmsgread (dev_t dev, io_req_t ior) static boolean_t kmsg_read_done (io_req_t ior) { - int err; int amt, len; simple_lock (&kmsg_lock); diff --git a/device/net_io.c b/device/net_io.c index 798ac7c..e0eb334 100644 --- a/device/net_io.c +++ b/device/net_io.c @@ -1332,7 +1332,6 @@ net_set_filter(ifp, rcv_port, priority, filter, filter_count) if (match != 0) { /* Insert to hash list */ net_hash_entry_t *p; - int j; hash_entp->rcv_port = rcv_port; for (i = 0; i < match->jt; i++) /* match->jt is n_keys */ |