aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar sugoi@google.com <sugoi@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-07 20:52:59 +0000
committerGravatar sugoi@google.com <sugoi@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-07 20:52:59 +0000
commit9c55f801a35b0d6c39f007fae432bd13094f3c52 (patch)
tree67523b0ff3fb50f0346c3b7beb0a429304e71d7f /gm
parent428fc4a37b66ac927d5b8c3a2938e578ea70cbb8 (diff)
Fixing some warnings on Linux
There were only a few warnings left, so I fixed them and enabled the unused variable warning by removing the "-Wno-unused" flag. Only the -Wno-unused-parameter remains for now (could be removed later). Review URL: https://codereview.chromium.org/12480002 git-svn-id: http://skia.googlecode.com/svn/trunk@8030 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r--gm/gmmain.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 26242e63d2..a817a17c86 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -1165,7 +1165,9 @@ int tool_main(int argc, char** argv) {
bool doRTree = true;
bool doTileGrid = true;
bool doVerbose = false;
+#if SK_SUPPORT_GPU
bool disableTextureCache = false;
+#endif
SkTDArray<size_t> configs;
SkTDArray<size_t> excludeConfigs;
SkTDArray<SkScalar> tileGridReplayScales;
@@ -1302,7 +1304,9 @@ int tool_main(int argc, char** argv) {
} else if (strcmp(*argv, "--noserialize") == 0) {
doSerialize = false;
} else if (strcmp(*argv, "--notexturecache") == 0) {
+#if SK_SUPPORT_GPU
disableTextureCache = true;
+#endif
} else if (strcmp(*argv, "--tiledPipe") == 0) {
doTiledPipe = true;
} else if (!strcmp(*argv, "--verbose") || !strcmp(*argv, "-v")) {