From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#4261: marked as done (make gcc warn about c99 declarations) Date: Fri, 20 Nov 2009 16:35:09 +0000 Message-ID: References: <200911201630.nAKGUpEI024572@godzilla.ics.uci.edu> <200908252316.n7PNGdd6014912@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1258734909-27433-2" X-Trace: ger.gmane.org 1258736595 18412 80.91.229.12 (20 Nov 2009 17:03:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2009 17:03:15 +0000 (UTC) To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 20 18:03:08 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NBWt1-0005R8-FL for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Nov 2009 18:03:07 +0100 Original-Received: from localhost ([127.0.0.1]:45140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBWt0-0007OL-V3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Nov 2009 12:03:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBWdz-000136-GA for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 11:47:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBWdr-0000ux-UA for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 11:47:33 -0500 Original-Received: from [199.232.76.173] (port=34699 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBWdp-0000tu-Rl for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 11:47:26 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52760) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NBWdo-0006Ug-Q9 for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 11:47:25 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAKGlLho028446; Fri, 20 Nov 2009 08:47:22 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAKGZ9ho027485; Fri, 20 Nov 2009 08:35:09 -0800 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 4261 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32776 Archived-At: This is a multi-part message in MIME format... ------------=_1258734909-27433-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Fri, 20 Nov 2009 08:30:51 -0800 (PST) with message-id <200911201630.nAKGUpEI024572@godzilla.ics.uci.edu> and subject line Re: bug#4434: add -Wdeclaration-after-statement to CFLAGS = if supported has caused the Emacs bug report #4434, regarding make gcc warn about c99 declarations to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 4434: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D4434 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1258734909-27433-2 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 25 Aug 2009 23:18:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,MURPHY_DRUGS_REL8, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7PNINCc026356 for ; Tue, 25 Aug 2009 16:18:24 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mg5HS-0001NM-Ur for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2009 19:18:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mg5HO-0001Cp-6Q for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2009 19:18:22 -0400 Received: from [199.232.76.173] (port=42544 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mg5HN-0001CU-VB for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2009 19:18:17 -0400 Received: from sallyv2.ics.uci.edu ([128.195.1.120]:61863) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Mg5HN-0004fI-F9 for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2009 19:18:17 -0400 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by sallyv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n7PNGd9d001960 for ; Tue, 25 Aug 2009 16:16:39 -0700 (PDT) Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n7PNGdd6014912; Tue, 25 Aug 2009 16:16:39 -0700 (PDT) Date: Tue, 25 Aug 2009 16:16:39 -0700 (PDT) Message-Id: <200908252316.n7PNGdd6014912@godzilla.ics.uci.edu> From: Dan Nicolaescu To: bug-gnu-emacs Subject: make gcc warn about c99 declarations X-Debbugs-No-Ack: yes Lines: 38 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n7PNGd9d001960 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) There were several patch proposals recently that had c99 style declarations in the middle of a block. There's a gcc flag that warns about that. The configure.in patch below enables the flag if gcc supports it, following the model for -Wno-pointer-sign Please apply if appropriate. Index: configure.in =================================================================== RCS file: /cvsroot/emacs/emacs/configure.in,v retrieving revision 1.607 diff -u -3 -p -u -p -r1.607 configure.in --- configure.in 23 Aug 2009 02:15:00 -0000 1.607 +++ configure.in 25 Aug 2009 23:11:58 -0000 @@ -757,6 +757,19 @@ CFLAGS="$SAVE_CFLAGS" unset has_option unset SAVE_CFLAGS +### Use -Wdeclaration-after-statement if the compiler supports it +AC_MSG_CHECKING([whether gcc understands -Wdeclaration-after-statement]) +SAVE_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -Wdeclaration-after-statement" +AC_TRY_COMPILE([], [], has_option=yes, has_option=no,) +if test $has_option = yes; then + C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" +fi +AC_MSG_RESULT($has_option) +CFLAGS="$SAVE_CFLAGS" +unset has_option +unset SAVE_CFLAGS + #### Some other nice autoconf tests. dnl checks for programs ------------=_1258734909-27433-2 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4434-done) by emacsbugs.donarmstrong.com; 20 Nov 2009 16:31:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from colin-baker-v0.ics.uci.edu (colin-baker-v0.ics.uci.edu [128.195.1.153]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAKGV4pl027270 for <4434-done@emacsbugs.donarmstrong.com>; Fri, 20 Nov 2009 08:31:05 -0800 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nAKGUpeB025878 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Nov 2009 08:30:51 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nAKGUpEI024572; Fri, 20 Nov 2009 08:30:51 -0800 (PST) Date: Fri, 20 Nov 2009 08:30:51 -0800 (PST) Message-Id: <200911201630.nAKGUpEI024572@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 4434-done@emacsbugs.donarmstrong.com Subject: Re: bug#4434: add -Wdeclaration-after-statement to CFLAGS if supported References: <200909141916.n8EJGGJJ023826@godzilla.ics.uci.edu> <200911191655.nAJGtYko021413@godzilla.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Thu, 19 Nov 2009 16:09:03 -0500") Lines: 7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nAKGUpeB025878 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu Stefan Monnier writes: > > Stefan, any reason not to check this in? > > Try it, Done. Thanks. ------------=_1258734909-27433-2--