public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Sandra Loosemore <sandra@codesourcery.com>
To: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>,
	Joseph Myers	<joseph@codesourcery.com>
Cc: Martin Sebor <msebor@gmail.com>,
	gcc Patches <gcc-patches@gcc.gnu.org>,
	Marek Polacek <polacek@redhat.com>
Subject: Re: [1/2] PR 78736: New warning -Wenum-conversion
Date: Wed, 12 Jul 2017 15:33:00 -0000	[thread overview]
Message-ID: <5966415B.6080805@codesourcery.com> (raw)
In-Reply-To: <CAAgBjMmYSSUX9JChiFjFNF1AOQV=CrOrwT6aatZPTGfeOhTS6w@mail.gmail.com>

On 07/11/2017 06:29 AM, Prathamesh Kulkarni wrote:

> @@ -6074,6 +6076,12 @@ In C++ enumerated type mismatches in conditional expressions are also
>  diagnosed and the warning is enabled by default.  In C this warning is
>  enabled by @option{-Wall}.
>
> +@item -Wenum-conversion @r{(C, Objective-C only)}
> +@opindex Wenum-conversion
> +@opindex Wno-enum-conversion
> +Warn when an enum value of a type is implicitly converted to an enum valeu of
> +another type. This warning is enabled by @option{-Wall}.
> +
>  @item -Wextra-semi @r{(C++, Objective-C++ only)}
>  @opindex Wextra-semi
>  @opindex Wno-extra-semi

Aside from the "valeu" typo, I think this would be more clearly phrased as

Warn when a value of enumerated type is implicitly converted to a 
different enumerated type.  This warning is enabled by @option{-Wall}.

The rest of the documentation changes are OK.

-Sandra

  reply	other threads:[~2017-07-12 15:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-02 17:13 Prathamesh Kulkarni
2017-05-02 22:10 ` Martin Sebor
2017-05-03  6:10   ` Prathamesh Kulkarni
2017-05-09 13:25     ` Prathamesh Kulkarni
2017-05-09 18:44       ` Martin Sebor
2017-05-09 21:19         ` Pedro Alves
2017-05-10 13:15         ` Prathamesh Kulkarni
2017-05-10 15:18           ` Martin Sebor
2017-06-12 20:17           ` Joseph Myers
2017-07-11 12:29             ` Prathamesh Kulkarni
2017-07-12 15:33               ` Sandra Loosemore [this message]
2017-07-31 18:40               ` Prathamesh Kulkarni
2017-08-08  4:21                 ` Prathamesh Kulkarni
2017-08-17 12:53                   ` Prathamesh Kulkarni
2017-08-26 19:27               ` Joseph Myers
2017-09-01  2:37                 ` Prathamesh Kulkarni
2017-09-01 11:55                   ` Joseph Myers

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=5966415B.6080805@codesourcery.com \
    --to=sandra@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joseph@codesourcery.com \
    --cc=msebor@gmail.com \
    --cc=polacek@redhat.com \
    --cc=prathamesh.kulkarni@linaro.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.
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).