From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#11207: configure: new option --enable-gcc-warnings Date: Sat, 21 Apr 2012 10:19:46 -0700 Organization: UCLA Computer Science Department Message-ID: <4F92EC32.9040407@cs.ucla.edu> References: <4F829688.6080602@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1335028853 7546 80.91.229.3 (21 Apr 2012 17:20:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2012 17:20:53 +0000 (UTC) Cc: 11207@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 21 19:20:48 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SLdzL-0000gB-7j for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Apr 2012 19:20:47 +0200 Original-Received: from localhost ([::1]:35858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLdzK-0001qO-Gn for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Apr 2012 13:20:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLdzE-0001q2-2E for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 13:20:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLdz5-0005qH-D6 for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 13:20:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLdz5-0005qC-9i for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 13:20:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SLdza-0005ca-78 for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 13:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Apr 2012 17:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11207 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 11207-submit@debbugs.gnu.org id=B11207.133502883521576 (code B ref 11207); Sat, 21 Apr 2012 17:21:02 +0000 Original-Received: (at 11207) by debbugs.gnu.org; 21 Apr 2012 17:20:35 +0000 Original-Received: from localhost ([127.0.0.1]:45919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLdz3-0005bq-T4 for submit@debbugs.gnu.org; Sat, 21 Apr 2012 13:20:34 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:37840) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLdyw-0005bZ-Mf for 11207@debbugs.gnu.org; Sat, 21 Apr 2012 13:20:28 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id AA5E9A60001; Sat, 21 Apr 2012 10:19:45 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DJTcuIziwhdm; Sat, 21 Apr 2012 10:19:39 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 8199DA60004; Sat, 21 Apr 2012 10:19:39 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59366 Archived-At: On 04/21/2012 01:05 AM, Andreas Schwab wrote: > You didn't regenerate m4/gl-comp.m4, which caused bug 11285. Thanks for fixing that. Odd; the code worked for me without that change. Maybe because I used a newer version of autoconf? Anyway I installed this further patch as a minor further cleanup, as bzr 107986: === modified file 'ChangeLog' --- ChangeLog 2012-04-21 08:03:41 +0000 +++ ChangeLog 2012-04-21 17:15:03 +0000 @@ -1,3 +1,12 @@ +2012-04-21 Paul Eggert + + Sync from gnulib version 4f11d6bebc3098c64ffde27079ab0d0cecfd0cdc + dated 2011-10-07. Regenerating from current gnulib would be a + pervasive change, and currently the trunk isn't open to such changes. + * configure.in (WARN_CFLAGS): Remove; no longer needed now + that gnulib does it. + * lib/gnulib.mk, m4/gl-comp.m4: Regenerate. + 2012-04-21 Andreas Schwab * m4/gl-comp.m4: Update. (Bug#11285) === modified file 'configure.in' --- configure.in 2012-04-20 08:48:50 +0000 +++ configure.in 2012-04-21 17:15:03 +0000 @@ -787,8 +787,6 @@ gl_WARN_ADD([-fdiagnostics-show-option]) gl_WARN_ADD([-funit-at-a-time]) - AC_SUBST([WARN_CFLAGS]) - AC_DEFINE([lint], [1], [Define to 1 if the compiler is checking for lint.]) AC_DEFINE([_FORTIFY_SOURCE], [2], [enable compile-time and run-time bounds-checking, and some warnings]) === modified file 'lib/gnulib.mk' --- lib/gnulib.mk 2012-02-01 06:04:34 +0000 +++ lib/gnulib.mk 2012-04-21 17:15:03 +0000 @@ -21,7 +21,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=msvc-inval --avoid=msvc-nothrow --avoid=raise --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt careadlinkat crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dup2 filemode getloadavg getopt-gnu ignore-value intprops lstat mktime pthread_sigmask readlink socklen stdarg stdio strftime strtoimax strtoumax symlink sys_stat +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=msvc-inval --avoid=msvc-nothrow --avoid=raise --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt careadlinkat crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dup2 filemode getloadavg getopt-gnu ignore-value intprops lstat manywarnings mktime pthread_sigmask readlink socklen stdarg stdio strftime strtoimax strtoumax symlink sys_stat warnings MOSTLYCLEANFILES += core *.stackdump === modified file 'm4/gl-comp.m4' --- m4/gl-comp.m4 2012-04-21 08:03:41 +0000 +++ m4/gl-comp.m4 2012-04-21 17:15:03 +0000 @@ -1,5 +1,5 @@ # DO NOT EDIT! GENERATED AUTOMATICALLY! -# Copyright (C) 2002-2012 Free Software Foundation, Inc. +# Copyright (C) 2002-2011 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -62,6 +62,7 @@ # Code from module largefile: AC_REQUIRE([AC_SYS_LARGEFILE]) # Code from module lstat: + # Code from module manywarnings: # Code from module mktime: # Code from module multiarch: # Code from module nocrash: @@ -100,6 +101,7 @@ # Code from module u64: # Code from module unistd: # Code from module verify: + # Code from module warnings: ]) # This macro should be invoked from ./configure.in, in the section @@ -216,6 +218,7 @@ gl_TIME_MODULE_INDICATOR([time_r]) AC_REQUIRE([AC_C_INLINE]) gl_UNISTD_H +AC_SUBST([WARN_CFLAGS]) gl_gnulib_enabled_dosname=false gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false gl_gnulib_enabled_pathmax=false