unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Peter Dyballa <Peter_Dyballa@Freenet.DE>, 9203@debbugs.gnu.org
Subject: bug#9203: 24.0.50; some Clang experience
Date: Sat, 30 Jul 2011 15:22:11 +0200	[thread overview]
Message-ID: <m2aabvzyws.fsf@igel.home> (raw)
In-Reply-To: <83livgc5t1.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 30 Jul 2011 15:27:06 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Peter Dyballa <Peter_Dyballa@Freenet.DE>
>> Date: Sat, 30 Jul 2011 13:53:30 +0200
>> 
>> When using
>> 
>> 	Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn)
>> 	Target: x86_64-apple-darwin10
>> 	Thread model: posix
>> 
>> to compile GNU Emacs on Mac OS X 10.6.8 with intel Core i7 it warns about some statements:
>> 
>> emacs-24.0.50/lib-src/../src/regex.c:6603:15: warning: 
>>       comparison of unsigned enum expression >= 0 is always true [-Wtautological-compare]
>>       if (ret >= 0)
>>           ~~~ ^  ~
>
> `ret' is of the type `reg_errcode_t', which is an enumerated data
> type, so its signedness is implementation-defined, AFAIK.

But re_search returns regoff_t, so the type is wrong.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





  parent reply	other threads:[~2011-07-30 13:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-30 11:53 bug#9203: 24.0.50; some Clang experience Peter Dyballa
2011-07-30 12:27 ` Eli Zaretskii
2011-07-30 12:58   ` Peter Dyballa
2011-07-30 13:22   ` Andreas Schwab [this message]
2011-07-30 13:31     ` Eli Zaretskii
2011-07-30 13:49       ` Andreas Schwab
2011-07-30 14:11         ` Eli Zaretskii
2011-07-30 14:33           ` Andreas Schwab
2015-12-22  3:44 ` Tom Tromey

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=m2aabvzyws.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=9203@debbugs.gnu.org \
    --cc=Peter_Dyballa@Freenet.DE \
    --cc=eliz@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).