Re: sound/core/init.c - address of 'snd_shutdown_f_ops' will always evaluate as 'true' , warning

From: Takashi Iwai
Date: Mon Jul 23 2007 - 06:26:22 EST


At Mon, 23 Jul 2007 02:43:29 +0200,
Gabriel C wrote:
>
> Hi,
>
> I got this warning on current git using gcc 4.2.1:
>
> ...
>
> sound/core/init.c: In function 'snd_card_disconnect':
> sound/core/init.c:307: warning: the address of 'snd_shutdown_f_ops' will always evaluate as 'true'
>
> ...

Yeah, gcc 4.2 is too verbose about this unnecessary warning...


Takashi
-
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/