|
fix warnings on Mac in gm
Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation
The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Committed: https://code.google.com/p/skia/source/detail?r=4185
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+44 lines, -50 lines) |
Patch |
|
M |
gm/aaclip.cpp
|
View
|
|
3 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
|
M |
gm/aarectmodes.cpp
|
View
|
|
2 chunks |
+3 lines, -13 lines |
0 comments
|
Download
|
|
M |
gm/arithmode.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
gm/bigmatrix.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
gm/cmykjpeg.cpp
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
gm/gammatext.cpp
|
View
|
|
3 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
|
M |
gm/gmmain.cpp
|
View
|
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
gm/hairmodes.cpp
|
View
|
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
|
M |
gm/patheffects.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/pathreverse.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
gm/shadertext.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/system_preferences_mac.mm
|
View
|
|
1 chunk |
+9 lines, -4 lines |
0 comments
|
Download
|
|