Re: [PATCH] Remove one of sound/oss/cmpci.c compile warnings
From: Rusty Russell
Date: Sun Nov 02 2003 - 01:24:43 EST
In message <Pine.LNX.4.58.0310282002530.4918@xxxxxxxxxxxxxxxxxxxxxxxxxx> you write:
> Hi!
>
> This patch removes this compile warning:
>
> sound/oss/cmpci.c: In function `cm_release_mixdev':
> sound/oss/cmpci.c:1465: warning: unused variable `s'
>
> GCC doesn't seem to unstand that VALIDATE_STATE macro uses s variable.
> I hope this is correct way to fix this.
Because it doesn't. A better change would be:
VALIDATE_STATE((struct cm_state *)file->private_data);
Or to remove the entire function.
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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/