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

Issue 5516044: Enable -Werror in skia on Linux (Closed)

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

Description

Enable -Werror in skia. Fix some harmless warnings. Also disable strict aliasing on targets that have the warning. This will allow us to enable -Werror in Chromium's skia.gyp.

Patch Set 1 #

Total comments: 9

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -17 lines) Patch
M bench/benchmain.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gm/arithmode.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M gm/tablecolorfilter.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gyp/common_conditions.gypi View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M src/animator/SkAnimateActive.cpp View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M src/effects/SkTableColorFilter.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrDrawState.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/EmptyPathTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/ScalarTest.cpp View 1 2 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 19
tony
12 years, 6 months ago (2012-01-05 00:27:04 UTC) #1
reed1
12 years, 6 months ago (2012-01-05 13:36:38 UTC) #2
bsalomon
On 2012/01/05 13:36:38, reed1 wrote: I'm all in favor of turning on -Werror (and in ...
12 years, 6 months ago (2012-01-05 13:45:06 UTC) #3
reed1
interesting read on strict-aliasing: http://cellperformance.beyond3d.com/articles/2006/06/understanding-strict-aliasing.html
12 years, 6 months ago (2012-01-05 13:49:49 UTC) #4
caryclark1
http://codereview.appspot.com/5516044/diff/1/gm/arithmode.cpp File gm/arithmode.cpp (right): http://codereview.appspot.com/5516044/diff/1/gm/arithmode.cpp#newcode31 gm/arithmode.cpp:31: SkPoint::Make(SkIntToScalar(WW), SkIntToScalar(HH)) }; Wouldn't a second set of braces ...
12 years, 6 months ago (2012-01-05 13:53:06 UTC) #5
TomH
http://codereview.appspot.com/5516044/diff/1/tests/EmptyPathTest.cpp File tests/EmptyPathTest.cpp (right): http://codereview.appspot.com/5516044/diff/1/tests/EmptyPathTest.cpp#newcode51 tests/EmptyPathTest.cpp:51: bool success = shouldDraw ? (static_cast<SkPMColor>(~0) == andValue) : ...
12 years, 6 months ago (2012-01-05 16:08:58 UTC) #6
reed1
http://codereview.appspot.com/5516044/diff/1/src/effects/SkTableColorFilter.cpp File src/effects/SkTableColorFilter.cpp (right): http://codereview.appspot.com/5516044/diff/1/src/effects/SkTableColorFilter.cpp#newcode174 src/effects/SkTableColorFilter.cpp:174: int count = gCountNibBits[fFlags & 0xF]; On 2012/01/05 13:53:07, ...
12 years, 6 months ago (2012-01-05 16:26:32 UTC) #7
tony
On 2012/01/05 13:45:06, bsalomon wrote: > On 2012/01/05 13:36:38, reed1 wrote: > > I'm all ...
12 years, 6 months ago (2012-01-05 18:11:52 UTC) #8
tony
ping
12 years, 6 months ago (2012-01-06 18:09:31 UTC) #9
Steve VanDeBogart
LGTM. reed may have further comment though right now I think he's investigating a swath ...
12 years, 6 months ago (2012-01-06 18:14:48 UTC) #10
reed1
the .cpp changes look good to me. I still do not want to disable strict-aliasing ...
12 years, 6 months ago (2012-01-06 18:15:12 UTC) #11
TomH
Just to cross-reference, http://codereview.appspot.com/5515047/ discusses strict referencing.
12 years, 6 months ago (2012-01-06 18:17:15 UTC) #12
tony
New patch with the following changes: - remove -fno-strict-aliasing - Commented out -Werror, since it ...
12 years, 6 months ago (2012-01-06 18:34:19 UTC) #13
caryclark1
LGTM
12 years, 6 months ago (2012-01-06 18:39:36 UTC) #14
bsalomon
On 2012/01/06 18:39:36, caryclark1 wrote: > LGTM LGTM,too.
12 years, 6 months ago (2012-01-06 18:40:10 UTC) #15
reed1
lgtm, but others should chime in http://codereview.appspot.com/5516044/diff/16/src/gpu/GrGLInterface.cpp File src/gpu/GrGLInterface.cpp (right): http://codereview.appspot.com/5516044/diff/16/src/gpu/GrGLInterface.cpp#newcode422 src/gpu/GrGLInterface.cpp:422: if ((kDesktop_GrGLBinding == ...
12 years, 6 months ago (2012-01-06 18:41:30 UTC) #16
bsalomon
http://codereview.appspot.com/5516044/diff/16/src/gpu/GrGLInterface.cpp File src/gpu/GrGLInterface.cpp (right): http://codereview.appspot.com/5516044/diff/16/src/gpu/GrGLInterface.cpp#newcode422 src/gpu/GrGLInterface.cpp:422: if ((kDesktop_GrGLBinding == fBindingsExported && On 2012/01/06 18:41:31, reed1 ...
12 years, 6 months ago (2012-01-06 18:59:24 UTC) #17
tony
On 2012/01/06 18:59:24, bsalomon wrote: > Actually the whole thing is wrong: it is missing ...
12 years, 6 months ago (2012-01-06 19:18:10 UTC) #18
bsalomon
12 years, 6 months ago (2012-01-06 19:22:36 UTC) #19
On 2012/01/06 19:18:10, tony wrote:
> On 2012/01/06 18:59:24, bsalomon wrote:
> > Actually the whole thing is wrong: it is missing the return false inside the
> > conditional. Tony, please just checkin without this change and I will fix
it.
> 
> Yay for -Werror finding an actual bug :)
> 
> I've uploaded the patch without the change to GrGLInterface.cpp.  I don't have
> commit access, so if someone could land it for me, that would be great.
> 
> Thanks!

Committed as r2983.
Sign in to reply to this message.

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