Skip to contentSkip to conversation

drivers/kvm/x86_emulate.c - address of 'twobyte_table' will always evaluate as 'true' , warning

DISCUSSION Gabriel C 2 participants 2 messages Jul 22, 2007

lore
Share & tools
lore

Gabriel C

author
#0 lore raw

Hi,

I got this warning on current git with gcc 4.2.1 :

...

drivers/kvm/x86_emulate.c: In function 'x86_emulate_memop':
drivers/kvm/x86_emulate.c:817: warning: the address of 'twobyte_table' will always evaluate as 'true'

...

Regards,

Gabriel C

#1 lore raw
Quoted 11 lines · Gabriel C

Hi,

I got this warning on current git with gcc 4.2.1 :

...

drivers/kvm/x86_emulate.c: In function 'x86_emulate_memop':
drivers/kvm/x86_emulate.c:817: warning: the address of 'twobyte_table' will always evaluate as 'true'

...

Thanks! That's a real bug (though harmless at present). Will fix it up.

Signature · 1 line
error compiling committee.c: too many arguments to function