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

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

Issue 2778053003: Revert of Enable -Wdeprecated-register. (Closed)
Patch Set: 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 6bbfb4b24e9a38c24b8db3d783b6389fe26e1f25..1d169b38b9c338cca9b691c09694c6a2238aa85a 100644
--- a/third_party/WebKit/Source/platform/ColorData.gperf
+++ b/third_party/WebKit/Source/platform/ColorData.gperf
@@ -3,13 +3,6 @@
#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;
@@ -175,13 +168,9 @@
yellow, 0xffffff00
yellowgreen, 0xff9acd32
%%
-
-#if defined(__clang__)
-#pragma clang diagnostic pop
-#endif
-
-const struct NamedColor* findColor(const char* str, unsigned len) {
- return ColorDataHash::findColorImpl(str, len);
+const struct NamedColor* findColor(register const char* str, register 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