unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jason Rumney <jasonr@gnu.org>
Cc: rgm@gnu.org, emacs-devel@gnu.org
Subject: Re: compiler warning "comparison is always true"
Date: Sun, 17 Feb 2008 06:27:34 +0200	[thread overview]
Message-ID: <u1w7cky15.fsf@gnu.org> (raw)
In-Reply-To: <47B76CD0.5070106@gnu.org> (message from Jason Rumney on Sat, 16 Feb 2008 23:08:00 +0000)

> Date: Sat, 16 Feb 2008 23:08:00 +0000
> From: Jason Rumney <jasonr@gnu.org>
> CC: Glenn Morris <rgm@gnu.org>, 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.




      reply	other threads:[~2008-02-17  4:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-02  1:00 compiler warning "comparison is always true" Glenn Morris
2008-02-08 20:25 ` Glenn Morris
2008-02-09 10:53   ` Eli Zaretskii
2008-02-09 19:41     ` Glenn Morris
2008-02-16 14:52       ` Eli Zaretskii
2008-02-16 22:34         ` Glenn Morris
2008-02-16 23:05           ` Jason Rumney
2008-02-16 23:08         ` Jason Rumney
2008-02-17  4:27           ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u1w7cky15.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).