Re: [PATCH 2/6] kern/lock.h: quiet GCC warnings about set but unused variables

2013-12-15 Thread Samuel Thibault
Marin Ramesa, le Thu 12 Dec 2013 18:27:04 +0100, a écrit : --- a/kern/lock.h +++ b/kern/lock.h @@ -94,7 +94,10 @@ extern voidcheck_simple_locks(void); /* * Do not allocate storage for locks if not needed. */ -#define decl_simple_lock_data(class,name) +struct l {};

Re: [PATCH 2/6] kern/lock.h: quiet GCC warnings about set but unused variables

2013-12-15 Thread Marin Ramesa
On 15.12.2013 20:13:22, Samuel Thibault wrote: index 8fe3672..67067cf 100644 --- a/kern/task.c +++ b/kern/task.c @@ -769,7 +769,7 @@ kern_return_t task_info( event_info-cow_faults = task-cow_faults; event_info-messages_sent = task-messages_sent;

[PATCH 2/6] kern/lock.h: quiet GCC warnings about set but unused variables

2013-12-12 Thread Marin Ramesa
This is a better version of these two patches: http://lists.gnu.org/archive/html/bug-hurd/2013-12/msg6.html http://lists.gnu.org/archive/html/bug-hurd/2013-12/msg00375.html It uses an empty structure to represent a lock when !MACH_SLOCKS and a modified simple_unlock() to quiet GCC warnings