Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2406)

Issue 4436068: [google] Add new warning -Wreal-conversion (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by Diego Novillo
Modified:
12 years, 6 months ago
Reviewers:
froydnj
CC:
Le-Chun Wu, jason_redhat.com, joseph_codesourcery.com, gcc-patches_gcc.gnu.org, Ollie Wild
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -5 lines) Patch
M gcc/c-family/ChangeLog.google-main View 1 chunk +7 lines, -0 lines 0 comments Download
M gcc/c-family/c.opt View 1 chunk +4 lines, -0 lines 0 comments Download
M gcc/c-family/c-common.c View 3 chunks +7 lines, -3 lines 0 comments Download
M gcc/c-family/c-opts.c View 1 chunk +6 lines, -0 lines 0 comments Download
gcc/doc/invoke.texi View 2 chunks +7 lines, -1 line 0 comments Download
M gcc/testsuite/ChangeLog.google-main View 1 chunk +5 lines, -0 lines 0 comments Download
A gcc/testsuite/g++.dg/warn/Wreal-conversion-1.C View 1 chunk +26 lines, -0 lines 0 comments Download
A gcc/testsuite/gcc.dg/Wreal-conversion-1.c View 1 chunk +25 lines, -1 line 0 comments Download

Messages

Total messages: 6
Diego Novillo
This patch from Le-Chun Wu adds a new warning flag "-Wreal-conversion" that warns about implicit ...
13 years ago (2011-04-29 14:59:35 UTC) #1
froydnj_codesourcery.com
On Fri, Apr 29, 2011 at 10:59:31AM -0400, Diego Novillo wrote: > * g++.dg/warn/Wreal-conversion-1.C: New. ...
13 years ago (2011-04-29 15:02:51 UTC) #2
Diego Novillo
On Fri, Apr 29, 2011 at 11:02, Nathan Froyd <froydnj@codesourcery.com> wrote: > On Fri, Apr ...
13 years ago (2011-04-29 17:58:13 UTC) #3
Diego Novillo
On 04/29/2011 11:02 AM, Nathan Froyd wrote: > On Fri, Apr 29, 2011 at 10:59:31AM ...
13 years ago (2011-04-29 20:26:23 UTC) #4
jason_redhat.com
On 04/29/2011 10:59 AM, Diego Novillo wrote: > This patch from Le-Chun Wu adds a ...
12 years, 12 months ago (2011-05-03 20:20:28 UTC) #5
Diego Novillo
12 years, 7 months ago (2011-09-21 19:31:08 UTC) #6
On Tue, May 3, 2011 at 16:20, Jason Merrill <jason@redhat.com> wrote:
> On 04/29/2011 10:59 AM, Diego Novillo wrote:
>>
>> This patch from Le-Chun Wu adds a new warning flag "-Wreal-conversion"
>> that warns about implicit type conversions from real (double or float)
>> values to integral values.
>
> Why do you want to use this flag rather than just use -Wconversion?

Because we've found it too noisy.  -Wconversion is a super-set of
-Wreal-conversion.  We added it in response to internal requests.
-Wconversion was warning benign cases so we could not enable it by
default in our builds.

Le-Chun, do you have some examples of -Wconversion being too spammy for us?


Diego.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b