Skip to contentSkip to conversation

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

DISCUSSION Gabriel C 2 participants 2 messages Jul 23, 2007

lore
Share & tools
lore

Gabriel C

author
#0 lore raw

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'

...

Regards,

Gabriel C

#1 lore raw

At Mon, 23 Jul 2007 02:43:29 +0200,

Quoted 11 lines · Gabriel C

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