From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: rcopley@gmail.com, emacs-devel@gnu.org
Subject: Re: GCC 7 warnings
Date: Sat, 09 Sep 2017 22:29:30 +0300 [thread overview]
Message-ID: <83lglnvffp.fsf@gnu.org> (raw)
In-Reply-To: <271de726-eae7-640f-456b-4e31c6dfff7f@cs.ucla.edu> (message from Paul Eggert on Sat, 9 Sep 2017 11:27:40 -0700)
> Cc: emacs-devel@gnu.org, Richard Copley <rcopley@gmail.com>
> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Sat, 9 Sep 2017 11:27:40 -0700
>
> There is a tradeoff for --enable-gcc-warnings. If we try to support ancient GCC
> compilers, we'll have to complicate the code and consume scarce maintenance
> resources. If we support only the latest GCC, developers using slightly-older
> GCCs will get some annoying warnings when they use --enable-gcc-warnings. I
> prefer to push the bleeding edge here, and ask developers who use
> --enable-gcc-warnings to at most (say) a year-old GCC version, as this saves
> some work for the rest of us. Of course we can't expect everybody to immediately
> sync to the latest GCC when released, but on the other hand there is a cost to
> supporting too-old GCCs, a cost I'd rather not pay (since I bear a good deal of
> it...).
We already filter the warnings by GCC version. We just needto filter
more, perhaps, and not just based on what GCC supports.
Since --enable-gcc-warnings is on by default for building the
development version, it needs to build relatively cleanly with a
reasonably recent GCC. It's okay to have the code ready for the
bleeding edge, but if that triggers warnings with slightly older GCC,
it's counter-productive IMO, because asking developers to use GCC
which is too new might waste their time due to GCC bugs. GCC 6 or 5
is not yet old enough to cause those who use them such trouble.
> By the way, I find the UNINIT macro to be more readable than supplying nonce
> expressions, as UNINIT clearly indicates to the reader that the variable is
> intended to be uninitialized.
This is a matter of personal style preferences. I find the syntax of
UNINIT confusing, because it's not C-like.
next prev parent reply other threads:[~2017-09-09 19:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-09 16:16 GCC 7 warnings Eli Zaretskii
2017-09-09 18:27 ` Paul Eggert
2017-09-09 19:29 ` Eli Zaretskii [this message]
2017-09-09 20:30 ` 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=83lglnvffp.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
--cc=rcopley@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.