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

Issue 7066054: Enable warnings-as-errors on Windows. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by bsalomon
Modified:
11 years, 11 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Enable warnings-as-errors on Windows. Committed: https://code.google.com/p/skia/source/detail?r=7094

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -7 lines) Patch
M debugger/SkDebugCanvas.cpp View 1 chunk +11 lines, -1 line 0 comments Download
M gm/blurrect.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/gmmain.cpp View 1 chunk +9 lines, -0 lines 0 comments Download
M gyp/common_conditions.gypi View 1 chunk +1 line, -1 line 0 comments Download
M gyp/jsoncpp.gyp View 1 chunk +7 lines, -0 lines 0 comments Download
M gyp/utils.gyp View 1 chunk +7 lines, -0 lines 0 comments Download
M include/core/SkFloatingPoint.h View 1 chunk +2 lines, -1 line 0 comments Download
M include/core/SkScalar.h View 2 chunks +5 lines, -1 line 0 comments Download
M src/core/SkMath.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M tests/PathTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 7
bsalomon
This builds clean for me in both Release and Debug.
11 years, 11 months ago (2013-01-08 19:52:10 UTC) #1
robertphillips
LGTM
11 years, 11 months ago (2013-01-08 19:54:49 UTC) #2
reed1
me no likie the neg infinity change... unless we really need it.
11 years, 11 months ago (2013-01-08 20:04:47 UTC) #3
Humper
On 2013/01/08 20:04:47, reed1 wrote: > me no likie the neg infinity change... unless we ...
11 years, 11 months ago (2013-01-08 20:08:00 UTC) #4
bsalomon
On 2013/01/08 20:08:00, Humper wrote: > On 2013/01/08 20:04:47, reed1 wrote: > > me no ...
11 years, 11 months ago (2013-01-08 20:12:12 UTC) #5
Humper
On 2013/01/08 20:12:12, bsalomon wrote: > On 2013/01/08 20:08:00, Humper wrote: > > On 2013/01/08 ...
11 years, 11 months ago (2013-01-08 20:15:05 UTC) #6
bsalomon
11 years, 11 months ago (2013-01-08 20:29:35 UTC) #7
On 2013/01/08 20:15:05, Humper wrote:
> On 2013/01/08 20:12:12, bsalomon wrote:
> > On 2013/01/08 20:08:00, Humper wrote:
> > > On 2013/01/08 20:04:47, reed1 wrote:
> > > > me no likie the neg infinity change... unless we really need it.
> > > 
> > > negInf does seem a little hamfisted, but it's also probably too broad to
> turn
> > > off the warning that it creates in whatever header file that #defines it,
> > since
> > > that's probably included almost everywhere.
> > > 
> > > I prefer zero warnings to -inf so this is fine with me but we're starting
to
> > (or
> > > maybe way past the point of) philosophical debate about code cleanliness
:)
> > 
> > The error comes when LTCG actually resolves gIEEEInfinity to a compile time
> > constant. The linker's code generator negates infinity and sees that value
is
> > (shockingly) negative infinity and says:
> > 
> > d:\src\skia6\tests\pathtest.cpp(256): warning C4756: overflow in constant
> > arithmetic
> > 
> > An alternative is to #pragma push/disable/pop around the usage in
PathTest.cpp
> > (assuming that the LTCG respects the disable). I'm okay with that.
> 
> also assuming we don't actually CARE about the overflow ;)

Mike said "uncle", landing as is.
Sign in to reply to this message.

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