all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Samuel Bronson <naesten@gmail.com>
To: emacs-devel@gnu.org
Subject: gl_MANYWARN_ALL_GCC() leads to many spurious warnings
Date: Fri, 6 Jul 2012 17:17:12 -0400	[thread overview]
Message-ID: <FF0AB60C-96B1-4A5D-8E7E-D10357E98FAA@gmail.com> (raw)

It seems that gl_MANYWARN_ALL_GCC is intended to enable (virtually)  
all warnings implemented by GCC, no matter how noisy or badly tested  
they are in whatever GCC version is in use.

The result is that, even after we explicitly disable dozens of them  
again, we still generally get a lot of spurious warnings when building  
with --enable-gcc-warnings.   Furthermore, since that option also  
enables -Werror, Emacs generally does not build at all in this  
configuration (unless you monkey around with WERROR_CFLAGS).

Why not simply use "-W -Wall -Wextra" and perhaps a few others, plus a  
few overrides to turn off the warnings those enable that aren't useful  
with Emacs?  That way, we'd only get warnings that had been reasonably  
well tested.



             reply	other threads:[~2012-07-06 21:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-06 21:17 Samuel Bronson [this message]
2012-07-06 21:41 ` gl_MANYWARN_ALL_GCC() leads to many spurious warnings Paul Eggert
2012-07-06 22:38   ` Samuel Bronson
2012-07-07 19:53     ` Paul Eggert
2012-07-08  0:41       ` Samuel Bronson
2012-07-08  7:32         ` Paul Eggert
2012-07-08 14:10           ` Samuel Bronson
2012-07-09  2:15             ` Paul Eggert
2012-07-09 15:23               ` Samuel Bronson
2012-07-10 18:07                 ` Samuel Bronson

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=FF0AB60C-96B1-4A5D-8E7E-D10357E98FAA@gmail.com \
    --to=naesten@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.