Guard colorNames variable under SK_SUPPORT_UNITTEST.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 15 Oct 2013 23:01:08 +0000 (23:01 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 15 Oct 2013 23:01:08 +0000 (23:01 +0000)
commit607b3a93e00a52c99e3cf33b2a5e7d0379348426
treea10dd8fba1fed7ae7ffeb41aa72a58749a49a246
parent1a01bc492e88d36b5c9f9ff25050537885a51b4a
Guard colorNames variable under SK_SUPPORT_UNITTEST.

That way clang does not complain with unneeded-internal-declaration warning,
because otherwise to clang this variable is unused and thus it won't
emit code for it.

The warning is:
../../src/utils/SkParseColor.cpp:35:3: error: variable 'colorNames' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
} colorNames[] = {

R=bsalomon@google.com, robertphillips@google.com

Author: tfarina@chromium.org

Review URL: https://codereview.chromium.org/27229004

git-svn-id: http://skia.googlecode.com/svn/trunk@11798 2bbb7eff-a529-9590-31e7-b0007b416f81
src/utils/SkParseColor.cpp