Re: [PATCH 167] Kill unused variables in the net code

From: Sam Ravnborg
Date: Fri Jan 07 2005 - 18:02:08 EST


On Fri, Jan 07, 2005 at 04:38:36PM -0500, linux-os wrote:
> >-#define read_unlock(lock) do { } while(0)
> >+#define read_unlock(lock) (void)(lock) /* Not "unused variable". */
>
> But don't all you need to do is:
>
> #define read_unlock(x)

Then tbl will still be unused - and compiler will emit warning.

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/