From: Bernd Schmidt <bschmidt@redhat.com>
To: Martin Sebor <msebor@gmail.com>,
Gcc Patch List <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] update -Wall and -Wextra documentation
Date: Thu, 10 Dec 2015 11:57:00 -0000 [thread overview]
Message-ID: <566968C1.9020302@redhat.com> (raw)
In-Reply-To: <5668B417.8070604@gmail.com>
On 12/10/2015 12:07 AM, Martin Sebor wrote:
>
> * invoke.texi (Warning Options): Update -Wall options. Clarify
> when some -Wextra options are enabled. Add -Wplacement-new example.
I tried to check this list against c.opt - I figure this should contain
essentially the ones that are have an EnabledBy(Wall), plus whatever
logic there is in c-opts.
> +-Wduplicated-cond @gol
I don't see this one as enabled by Wall, and
2015-10-02 Marek Polacek <polacek@redhat.com>
* c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
> +-Wplacement-new @r{(only for C++)} @gol
This one appears to be on by default?
> +In C++, this warning is also enabled by @option{-Wall}. In C, it is also
> +enabled by @option{-Wextra}; to get the other warnings of @option{-Wextra}
> +without this warning, use @option{-Wextra -Wno-sign-compare}.
Is the last part of the sentence really necessary? It kind of follows
from the rest of the documentation and we don't spell this out for other
-Wextra options.
Bernd
next prev parent reply other threads:[~2015-12-10 11:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 23:07 Martin Sebor
2015-12-10 11:57 ` Bernd Schmidt [this message]
2015-12-10 16:52 ` Martin Sebor
2015-12-10 17:00 ` Bernd Schmidt
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=566968C1.9020302@redhat.com \
--to=bschmidt@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=msebor@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).