Fix clang warning as error from 8480.
authorbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 2 Apr 2013 14:40:44 +0000 (14:40 +0000)
committerbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 2 Apr 2013 14:40:44 +0000 (14:40 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@8482 2bbb7eff-a529-9590-31e7-b0007b416f81

src/sfnt/SkOTTable_name.cpp

index 04e953d..177cd8f 100644 (file)
@@ -429,9 +429,11 @@ BCP47FromLanguageID[] = {
     { 0x540a, "es-US" }, //Spanish
 };
 
+namespace {
 int BCP47FromLanguageIdCompare(const BCP47FromLanguageId* a, const BCP47FromLanguageId* b) {
     return a->languageID - b->languageID;
 }
+}
 
 template <typename D, typename S> static D* SkTAfter(S const * const ptr, size_t count = 1) {
     return (D*)(ptr + count);