From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: C-g crash in C-x C-f (OSX Lion) Date: Mon, 19 Dec 2011 19:18:27 +0100 Message-ID: References: <4EEB48B2.9090602@swipnet.se> <83liqc1tac.fsf@gnu.org> <83fwgk1atk.fsf@gnu.org> <4EEBE0DC.1050803@cs.ucla.edu> <5CAFED3B-F63C-404F-ABD2-A9C3653D8F8E@swipnet.se> <4EECDD4A.3030902@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1324318727 23415 80.91.229.12 (19 Dec 2011 18:18:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2011 18:18:47 +0000 (UTC) Cc: Eli Zaretskii , Carsten Mattner , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 19 19:18:43 2011 Return-path: Envelope-to: ged-emacs-devel@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 1RchnM-00078W-H7 for ged-emacs-devel@m.gmane.org; Mon, 19 Dec 2011 19:18:40 +0100 Original-Received: from localhost ([::1]:51556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RchnL-0005UR-SB for ged-emacs-devel@m.gmane.org; Mon, 19 Dec 2011 13:18:39 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RchnG-0005UL-Cu for emacs-devel@gnu.org; Mon, 19 Dec 2011 13:18:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RchnC-0001vh-6R for emacs-devel@gnu.org; Mon, 19 Dec 2011 13:18:34 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]:47168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RchnC-0001uV-00 for emacs-devel@gnu.org; Mon, 19 Dec 2011 13:18:30 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 0BD30968E for ; Mon, 19 Dec 2011 19:18:28 +0100 (CET) Original-Received: (qmail 24225 invoked by uid 89); 19 Dec 2011 18:17:48 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 19 Dec 2011 18:17:48 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 957B37FA058; Mon, 19 Dec 2011 19:18:27 +0100 (CET) In-Reply-To: <4EECDD4A.3030902@cs.ucla.edu> X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 62.20.26.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146838 Archived-At: Hello. I get a lot of "will never be executed" for the macro SELECTED_FRAME: #define SELECTED_FRAME() \ ((FRAMEP (selected_frame) \ && FRAME_LIVE_P (XFRAME (selected_frame))) \ ? XFRAME (selected_frame) \ : (abort (), (struct frame *) 0)) I guess it is the (struct frame *)0 that never will be executed? How do you deal with these warnings? Jan D. 17 dec 2011 kl. 19:19 skrev Paul Eggert: > On 12/17/11 01:14, Jan Dj=E4rv wrote: >> Did you use gcc for the static checking? Which options? >=20 > Yes, I used gcc. Here are the options I typically use > for Emacs on Fedora 15. I also use -isystem > rather than -I for system include directories. > I have a modified configure.in that enables all this > with --enable-gcc-warnings (this is the typical 'configure' option > for other GNU packages). I'm planning to add this 'configure' > option to Emacs at some point, so that others can do this sort > of checking if they want to. >=20 > -std=3Dgnu99 > -Wall > -W > -Wformat-y2k > -Wformat-security > -Winit-self > -Wmissing-include-dirs > -Wunused > -Wunknown-pragmas > -Wstrict-aliasing > -Wdeclaration-after-statement > -Wunsafe-loop-optimizations > -Wpointer-arith > -Wbad-function-cast > -Wcast-align > -Wwrite-strings > -Wlogical-op > -Wstrict-prototypes > -Wold-style-definition > -Wmissing-prototypes > -Wmissing-declarations > -Wmissing-noreturn > -Wmissing-format-attribute > -Wpacked > -Wunreachable-code > -Winvalid-pch > -Wvolatile-register-var > -Wdisabled-optimization > -Wstack-protector > -Wbuiltin-macro-redefined > -Wmudflap > -Wpacked-bitfield-compat > -Wsync-nand > -Wattributes > -Wcoverage-mismatch > -Wmultichar > -Wunused-macros > -Wno-missing-field-initializers > -Wno-missing-field-initializers > -Wno-sign-compare > -Wno-type-limits > -Wno-switch > -Wno-unused-parameter > -Werror