| Index: third_party/WebKit/Source/platform/ColorData.gperf
|
| diff --git a/third_party/WebKit/Source/platform/ColorData.gperf b/third_party/WebKit/Source/platform/ColorData.gperf
|
| index 1d169b38b9c338cca9b691c09694c6a2238aa85a..6bbfb4b24e9a38c24b8db3d783b6389fe26e1f25 100644
|
| --- a/third_party/WebKit/Source/platform/ColorData.gperf
|
| +++ b/third_party/WebKit/Source/platform/ColorData.gperf
|
| @@ -3,6 +3,13 @@
|
| #include <string.h>
|
|
|
| namespace blink {
|
| +
|
| +#if defined(__clang__)
|
| +#pragma clang diagnostic push
|
| +// TODO(thakis): Remove once we use a gperf that no longer produces "register".
|
| +#pragma clang diagnostic ignored "-Wdeprecated-register"
|
| +#endif
|
| +
|
| %}
|
| %struct-type
|
| struct NamedColor;
|
| @@ -168,9 +175,13 @@ whitesmoke, 0xfff5f5f5
|
| yellow, 0xffffff00
|
| yellowgreen, 0xff9acd32
|
| %%
|
| -const struct NamedColor* findColor(register const char* str, register unsigned len)
|
| -{
|
| - return ColorDataHash::findColorImpl(str, len);
|
| +
|
| +#if defined(__clang__)
|
| +#pragma clang diagnostic pop
|
| +#endif
|
| +
|
| +const struct NamedColor* findColor(const char* str, unsigned len) {
|
| + return ColorDataHash::findColorImpl(str, len);
|
| }
|
|
|
| } // namespace blink
|
|
|