public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/kvm/x86_emulate.c - address of 'twobyte_table' will always evaluate as 'true' , warning
@ 2007-07-22 12:39 Gabriel C
  2007-07-22 12:47 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Gabriel C @ 2007-07-22 12:39 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Avi Kivity, Yaniv Kamay

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: drivers/kvm/x86_emulate.c - address of 'twobyte_table' will always evaluate as 'true' , warning
  2007-07-22 12:39 drivers/kvm/x86_emulate.c - address of 'twobyte_table' will always evaluate as 'true' , warning Gabriel C
@ 2007-07-22 12:47 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-07-22 12:47 UTC (permalink / raw)
  To: Gabriel C; +Cc: Linux Kernel Mailing List, Yaniv Kamay

Gabriel C wrote:
> 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.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-22 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-22 12:39 drivers/kvm/x86_emulate.c - address of 'twobyte_table' will always evaluate as 'true' , warning Gabriel C
2007-07-22 12:47 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox