[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] kern/lock.h: quiet GCC warnings about set but unused var
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 2/2] kern/lock.h: quiet GCC warnings about set but unused variables |
Date: |
Sun, 15 Dec 2013 23:04:10 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Sun 15 Dec 2013 22:00:12 +0100, a écrit :
> @@ -228,6 +228,8 @@ void assert_wait(
> thread_t thread;
> #if MACH_SLOCKS
> simple_lock_t lock;
> +#else /* MACH_SLOCKS */
> + decl_simple_lock_data( , *lock);
> #endif /* MACH_SLOCKS */
Shouldn't it be possible to simply only keep the decl_simple_lock_data
version, and avoid the #if altogether?
Samuel