Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: third_party/WebKit/Source/platform/ColorData.gperf

Issue 2780623003: Enable -Wdeprecated-register (except on CrOS and 32-bit Linux). (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_css_value_keywords.py ('k') | third_party/libaddressinput/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698