diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-12-16 00:18:41 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-16 07:43:56 +0100 |
commit | f3593b77a6ab8550c119e0617e3dee4abf144533 (patch) | |
tree | 16b69043695f7e84b152c47f9f36df6e7bd78532 /kern/task.c | |
parent | 4e639015436ec69fc161da2eb061073701483680 (diff) | |
download | gnumach-f3593b77a6ab8550c119e0617e3dee4abf144533.tar.gz gnumach-f3593b77a6ab8550c119e0617e3dee4abf144533.tar.bz2 gnumach-f3593b77a6ab8550c119e0617e3dee4abf144533.zip |
kern: quiet GCC warnings about set but unused variables
* kern/lock.h (simple_lock_data_empty): Define.
(decl_simple_lock_data, simple_unlock): Likewise.
* kern/sched_prim.c (lock): Declare.
[MACH_SLOCKS]: Remove #ifs.
* kern/task.c (task_lock, task_unlock): Remove address operator.
Diffstat (limited to 'kern/task.c')
-rw-r--r-- | kern/task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/task.c b/kern/task.c index 8fe3672f..13b3c761 100644 --- a/kern/task.c +++ b/kern/task.c @@ -761,7 +761,7 @@ kern_return_t task_info( event_info = (task_events_info_t) task_info_out; - task_lock(&task); + task_lock(task); event_info->faults = task->faults; event_info->zero_fills = task->zero_fills; event_info->reactivations = task->reactivations; @@ -769,7 +769,7 @@ kern_return_t task_info( event_info->cow_faults = task->cow_faults; event_info->messages_sent = task->messages_sent; event_info->messages_received = task->messages_received; - task_unlock(&task); + task_unlock(task); *task_info_count = TASK_EVENTS_INFO_COUNT; break; |