All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] -Werror=tautological-compare error with -save-temps on fedora 24 gcc 6.2.1
@ 2016-10-16  7:08 Anand J
  2016-10-17 14:02 ` John Snow
  0 siblings, 1 reply; 2+ messages in thread
From: Anand J @ 2016-10-16  7:08 UTC (permalink / raw)
  To: qemu-devel

Hi,

I'm using gcc 6.2.1 for compiling qemu with following options in Fedora 24

../../../configure --enable-debug --extra-cflags="-save-temps"
make

and getting following error.

*  CC      ui/gtk.o*
*qemu/ui/gtk.c: In function ‘gd_map_keycode’:*
*qemu/ui/gtk.c:1030:21: error: self-comparison always evaluates to true
[-Werror=tautological-compare]*
*     } else if (GDK_IS_X11_DISPLAY(dpy) && gdk_keycode < 158) {*
*                     ^~*
*qemu/ui/gtk.c: In function ‘gd_set_keycode_type’:*
*qemu/ui/gtk.c:2123:18: error: self-comparison always evaluates to true
[-Werror=tautological-compare]*
*     if (GDK_IS_X11_DISPLAY(display)) {*
*                  ^~*
*cc1: all warnings being treated as errors*
*qemu/rules.mak:60: recipe for target 'ui/gtk.o' failed*
*make: *** [ui/gtk.o] Error 1*



Build works fine without -save-temps options. Does anybody know how to fix
this?

Thanks,
Anand

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

* Re: [Qemu-devel] -Werror=tautological-compare error with -save-temps on fedora 24 gcc 6.2.1
  2016-10-16  7:08 [Qemu-devel] -Werror=tautological-compare error with -save-temps on fedora 24 gcc 6.2.1 Anand J
@ 2016-10-17 14:02 ` John Snow
  0 siblings, 0 replies; 2+ messages in thread
From: John Snow @ 2016-10-17 14:02 UTC (permalink / raw)
  To: Anand J, qemu-devel



On 10/16/2016 03:08 AM, Anand J wrote:
> Hi,
>
> I'm using gcc 6.2.1 for compiling qemu with following options in Fedora 24
>
> ../../../configure --enable-debug --extra-cflags="-save-temps"
> make
>
> and getting following error.
>
> *  CC      ui/gtk.o*
> *qemu/ui/gtk.c: In function ‘gd_map_keycode’:*
> *qemu/ui/gtk.c:1030:21: error: self-comparison always evaluates to true
> [-Werror=tautological-compare]*
> *     } else if (GDK_IS_X11_DISPLAY(dpy) && gdk_keycode < 158) {*
> *                     ^~*
> *qemu/ui/gtk.c: In function ‘gd_set_keycode_type’:*
> *qemu/ui/gtk.c:2123:18: error: self-comparison always evaluates to true
> [-Werror=tautological-compare]*
> *     if (GDK_IS_X11_DISPLAY(display)) {*
> *                  ^~*
> *cc1: all warnings being treated as errors*
> *qemu/rules.mak:60: recipe for target 'ui/gtk.o' failed*
> *make: *** [ui/gtk.o] Error 1*
>
>
>
> Build works fine without -save-temps options. Does anybody know how to fix
> this?
>
> Thanks,
> Anand
>

Reminds me of a CCACHE + clang problem. Try disabling ccache to see if 
that improves matters for you. Otherwise, I'd just start disabling 
errors as long as you want to be using the save temps option with 
-Wno-tautological-compare for now.

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

end of thread, other threads:[~2016-10-17 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-16  7:08 [Qemu-devel] -Werror=tautological-compare error with -save-temps on fedora 24 gcc 6.2.1 Anand J
2016-10-17 14:02 ` John Snow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.