From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: compiler warning "comparison is always true" Date: Sun, 17 Feb 2008 06:27:34 +0200 Message-ID: References: <47B76CD0.5070106@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1203222477 8503 80.91.229.12 (17 Feb 2008 04:27:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2008 04:27:57 +0000 (UTC) Cc: rgm@gnu.org, emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 17 05:28:21 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JQb8V-0002mP-4p for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2008 05:28:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQb80-00041t-SC for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 23:27:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQb7x-00041o-8T for emacs-devel@gnu.org; Sat, 16 Feb 2008 23:27:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQb7u-00041c-SR for emacs-devel@gnu.org; Sat, 16 Feb 2008 23:27:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQb7u-00041Z-MV for emacs-devel@gnu.org; Sat, 16 Feb 2008 23:27:42 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQb7n-0006Wn-Fw; Sat, 16 Feb 2008 23:27:35 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-29-113.inter.net.il [80.230.29.113]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EZG22266 (AUTH halo1); Sun, 17 Feb 2008 06:27:33 +0200 (IST) In-reply-to: <47B76CD0.5070106@gnu.org> (message from Jason Rumney on Sat, 16 Feb 2008 23:08:00 +0000) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89316 Archived-At: > Date: Sat, 16 Feb 2008 23:08:00 +0000 > From: Jason Rumney > CC: Glenn Morris , emacs-devel@gnu.org > > Eli Zaretskii wrote: > > I think I fixed that as well. Please try. > > > > Doesn't "fixing" these warnings prevent the compiler from optimizing the > tests away when they are not required? Maybe, I didn't look at the code. But even if it does, I can hardly believe it matters in this context. If you know a way of fixing it without this side effect, please install a different change. Alternatively, you are welcome to try convincing GCC developers to stop issuing warnings about perfectly valid code, unless invoked with -Wall; I gave up on that a long time ago, after being flamed into silence.