From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvfYO-0002Mo-Nf for qemu-devel@nongnu.org; Sun, 16 Oct 2016 03:08:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvfYN-0006j2-Mw for qemu-devel@nongnu.org; Sun, 16 Oct 2016 03:08:16 -0400 Received: from mail-it0-x22e.google.com ([2607:f8b0:4001:c0b::22e]:37241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bvfYN-0006iM-GT for qemu-devel@nongnu.org; Sun, 16 Oct 2016 03:08:15 -0400 Received: by mail-it0-x22e.google.com with SMTP id m138so25542148itm.0 for ; Sun, 16 Oct 2016 00:08:14 -0700 (PDT) MIME-Version: 1.0 From: Anand J Date: Sun, 16 Oct 2016 12:38:13 +0530 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [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: qemu-devel@nongnu.org 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