all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Glenn Morris <rgm@gnu.org>
Cc: Xue Fuqiao <xfq.free@gmail.com>,
	Andreas Schwab <schwab@linux-m68k.org>,
	Gnulib Bugs <bug-gnulib@gnu.org>,
	13448@debbugs.gnu.org
Subject: bug#13448: Cannot build Emacs 24.2.92
Date: Tue, 15 Jan 2013 12:40:26 -0800	[thread overview]
Message-ID: <50F5BEBA.2070802__20870.5525416464$1358282515$gmane$org@cs.ucla.edu> (raw)
In-Reply-To: <fsj625jdj.fsf@fencepost.gnu.org>

On 01/15/13 11:36, Glenn Morris wrote:
> So why does configure.ac contain this:
> 
>    gl_WARN_ADD([-Werror], [WERROR_CFLAGS])

That part of the Gnulib manual was out of date.
I pushed the following fix to the Gnulib manual.

---
 ChangeLog         |  7 +++++++
 doc/warnings.texi | 15 +++++++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 79defc9..1cdc89f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+	doc: clarify -Werror
+	* doc/warnings.texi (warnings): -Werror is not always a bad idea;
+	clarify that it's intended for developers, not for ordinary builds,
+	and mention --enable-gcc-warnings as one possible use.
+
 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
 
 	stdint: fix build with Android's Bionic fox x86
diff --git a/doc/warnings.texi b/doc/warnings.texi
index 40dfc20..1836c04 100644
--- a/doc/warnings.texi
+++ b/doc/warnings.texi
@@ -21,10 +21,15 @@ from gnulib), it is useful to apply different warning options to
 different directories.
 
 @item
-It allows to use @samp{-Werror} at @samp{make distcheck} time, to verify
+It lets you use @samp{-Werror} at @samp{make distcheck} time, to verify
 that on the maintainer's system, no warnings remain.  (Note that use of
 @samp{-Werror} in @code{CFLAGS} does not work in general, because it may
 break autoconfiguration.)
+
+@item
+Similarly, it lets you use @samp{-Werror} when the builder runs
+@command{configure} with an option such as
+@option{--enable-gcc-warnings}.
 @end itemize
 
 To use this module, you need the following:
@@ -49,10 +54,12 @@ and before @code{CFLAGS} in build rules emitted by Automake.  This allows
 the user to provide @code{CFLAGS} that override the @code{WARN_CFLAGS}.
 @end enumerate
 
-Note that it is a bad idea to use @samp{gl_WARN_ADD([-Werror])}.  The
+@samp{gl_WARN_ADD([-Werror])} is intended for developers, and should be
+avoided in contexts where it would affect ordinary installation builds.  The
 warnings emitted by GCC depend, to some extent, on the contents of the
 system header files, on the size and signedness of built-in types, etc.
 Use of @samp{-Werror} would cause frustration to all users on platforms
 that the maintainer has not tested before the release.  It is better if
-maintainers use @samp{-Werror} only for themselves (for example, during
-@samp{make distcheck}, as mentioned above).
+@samp{-Werror} is off by default, and is enabled only by developers.
+For example, @samp{-Werror} could affect @samp{make distcheck} or
+@samp{configure --enable-gcc-warnings} as mentioned above.
-- 
1.7.11.7







  reply	other threads:[~2013-01-15 20:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-15  9:59 bug#13448: Cannot build Emacs 24.2.92 Xue Fuqiao
2013-01-15 16:15 ` Eli Zaretskii
2013-01-16  0:05   ` Xue Fuqiao
2013-01-15 17:23 ` Glenn Morris
2013-01-16  0:32   ` Xue Fuqiao
2013-01-15 18:48 ` Andreas Schwab
2013-01-15 19:08   ` Glenn Morris
2013-01-15 19:36     ` Glenn Morris
2013-01-15 20:40       ` Paul Eggert [this message]
     [not found]       ` <50F5BEBA.2070802@cs.ucla.edu>
2013-01-15 21:30         ` Paul Eggert
2013-01-16  1:02         ` Glenn Morris
2013-01-16  2:18           ` Paul Eggert
2013-01-16  2:26             ` Glenn Morris
2013-01-16  6:05               ` Paul Eggert

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='50F5BEBA.2070802__20870.5525416464$1358282515$gmane$org@cs.ucla.edu' \
    --to=eggert@cs.ucla.edu \
    --cc=13448@debbugs.gnu.org \
    --cc=bug-gnulib@gnu.org \
    --cc=rgm@gnu.org \
    --cc=schwab@linux-m68k.org \
    --cc=xfq.free@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.