From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs Subject: bug#9203: 24.0.50; some Clang experience Date: Sat, 30 Jul 2011 14:58:28 +0200 Message-ID: <89CB195C-FE47-42C2-8222-518F36FBD893@Freenet.DE> References: <83livgc5t1.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1312030744 14023 80.91.229.12 (30 Jul 2011 12:59:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2011 12:59:04 +0000 (UTC) Cc: 9203@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 30 14:58:57 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qn984-00053p-TN for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jul 2011 14:58:57 +0200 Original-Received: from localhost ([::1]:58127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn984-0005aj-IX for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jul 2011 08:58:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn981-0005aX-FP for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2011 08:58:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qn980-0002M2-HJ for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2011 08:58:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn980-0002Lx-Fr for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2011 08:58:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qn98A-0007oV-Js; Sat, 30 Jul 2011 08:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peter Dyballa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jul 2011 12:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9203-submit@debbugs.gnu.org id=B9203.131203072630013 (code B ref 9203); Sat, 30 Jul 2011 12:59:02 +0000 Original-Received: (at 9203) by debbugs.gnu.org; 30 Jul 2011 12:58:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qn97u-0007o1-JX for submit@debbugs.gnu.org; Sat, 30 Jul 2011 08:58:46 -0400 Original-Received: from mout8.freenet.de ([195.4.92.98]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qn97q-0007ns-Ic for 9203@debbugs.gnu.org; Sat, 30 Jul 2011 08:58:44 -0400 Original-Received: from [195.4.92.26] (helo=16.mx.freenet.de) by mout8.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.76 #5) id 1Qn97e-0005Ye-LE; Sat, 30 Jul 2011 14:58:30 +0200 Original-Received: from ip-88-153-242-186.unitymediagroup.de ([88.153.242.186]:58466 helo=peter-dyballas-macbook-pro.fritz.box) by 16.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 587) (Exim 4.72 #5) id 1Qn97e-0003tQ-HU; Sat, 30 Jul 2011 14:58:30 +0200 In-Reply-To: <83livgc5t1.fsf@gnu.org> X-Mailer: Apple Mail (2.1084) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 30 Jul 2011 08:59:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49716 Archived-At: Am 30.07.2011 um 14:27 schrieb Eli Zaretskii: >> From: Peter Dyballa >> Date: Sat, 30 Jul 2011 13:53:30 +0200 >>=20 >> When using >>=20 >> Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM = 2.9svn) >> Target: x86_64-apple-darwin10 >> Thread model: posix >>=20 >> to compile GNU Emacs on Mac OS X 10.6.8 with intel Core i7 it warns = about some statements: >>=20 >> emacs-24.0.50/lib-src/../src/regex.c:6603:15: warning:=20 >> comparison of unsigned enum expression >=3D 0 is always true = [-Wtautological-compare] >> if (ret >=3D 0) >> ~~~ ^ ~ >=20 > `ret' is of the type `reg_errcode_t', which is an enumerated data > type, so its signedness is implementation-defined, AFAIK. Why did you > use that particular warning option? I did not use any. Here is the configure invocation: env LANG=3DC PATH=3D/opt/local/bin:$PATH ./configure = --without-sound --without-dbus --without-pop --without-gconf = --without-gpm --with-ns --disable-ns-self-contained = --enable-locallisppath=3D/Library/Application\ = Support/Emacs/calendar24:/Library/Application\ Support/Emacs CFLAGS=3D"-v = -g -H -pipe -fPIC -fno-common -m64 -mtune=3Dcore2 -march=3Dcore2 -Os = -fomit-frame-pointer -foptimize-register-move -ftree-vectorize" = LDFLAGS=3D"-Wl,-dead_strip_dylibs -Wl,-bind_at_load -Wl,-t" CC=3Dclang = CXX=3Dclang++ = PKG_CONFIG_PATH=3D/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig:/usr= /lib/pkgconfig I thick Clang tells us how to avoid such reports. At least I don't get = the one cited when I add -Wtautological-compare to the CFLAGS and = configure and compile. Purpose of my report is merely to point to possibly unclean code. Clangs = really reports a lot! -- Greetings Pete There are three types of people in this world: those who can count, and = those who cannot.