From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bw8Un-0001EA-TD for qemu-devel@nongnu.org; Mon, 17 Oct 2016 10:02:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bw8Uk-0007IV-2F for qemu-devel@nongnu.org; Mon, 17 Oct 2016 10:02:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37762) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bw8Uj-0007IH-Td for qemu-devel@nongnu.org; Mon, 17 Oct 2016 10:02:26 -0400 References: From: John Snow Message-ID: Date: Mon, 17 Oct 2016 10:02:23 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] -Werror=tautological-compare error with -save-temps on fedora 24 gcc 6.2.1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anand J , qemu-devel@nongnu.org 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=3D"-save-temps" > make > > and getting following error. > > * CC ui/gtk.o* > *qemu/ui/gtk.c: In function =E2=80=98gd_map_keycode=E2=80=99:* > *qemu/ui/gtk.c:1030:21: error: self-comparison always evaluates to true > [-Werror=3Dtautological-compare]* > * } else if (GDK_IS_X11_DISPLAY(dpy) && gdk_keycode < 158) {* > * ^~* > *qemu/ui/gtk.c: In function =E2=80=98gd_set_keycode_type=E2=80=99:* > *qemu/ui/gtk.c:2123:18: error: self-comparison always evaluates to true > [-Werror=3Dtautological-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=20 that improves matters for you. Otherwise, I'd just start disabling=20 errors as long as you want to be using the save temps option with=20 -Wno-tautological-compare for now.