Title: [194473] trunk/Tools
- Revision
- 194473
- Author
- [email protected]
- Date
- 2015-12-31 16:19:20 -0800 (Thu, 31 Dec 2015)
Log Message
REGRESSION (r194470): Fix warnings uncovered by migrating to WTF_MOVE
<https://bugs.webkit.org/show_bug.cgi?id=152601>
Ignore unknown pragmas on older clangs. Fixes the following
build failure:
Tools/TestWebKitAPI/Tests/WTF/NakedPtr.cpp:184:34: error: unknown warning group '-Wself-move', ignored [-Werror,-Wunknown-pragmas]
#pragma clang diagnostic ignored "-Wself-move"
^
1 error generated.
* TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WTF/RefPtr.cpp:
(TestWebKitAPI::TEST):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (194472 => 194473)
--- trunk/Tools/ChangeLog 2015-12-31 23:49:46 UTC (rev 194472)
+++ trunk/Tools/ChangeLog 2016-01-01 00:19:20 UTC (rev 194473)
@@ -1,3 +1,21 @@
+2015-12-31 David Kilzer <[email protected]>
+
+ REGRESSION (r194470): Fix warnings uncovered by migrating to WTF_MOVE
+ <https://bugs.webkit.org/show_bug.cgi?id=152601>
+
+ Ignore unknown pragmas on older clangs. Fixes the following
+ build failure:
+
+ Tools/TestWebKitAPI/Tests/WTF/NakedPtr.cpp:184:34: error: unknown warning group '-Wself-move', ignored [-Werror,-Wunknown-pragmas]
+ #pragma clang diagnostic ignored "-Wself-move"
+ ^
+ 1 error generated.
+
+ * TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
+ (TestWebKitAPI::TEST):
+ * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
+ (TestWebKitAPI::TEST):
+
2015-12-31 Andy Estes <[email protected]>
Update the style checker to advise using WTFMove() instead of WTF::move()
Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/NakedPtr.cpp (194472 => 194473)
--- trunk/Tools/TestWebKitAPI/Tests/WTF/NakedPtr.cpp 2015-12-31 23:49:46 UTC (rev 194472)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/NakedPtr.cpp 2016-01-01 00:19:20 UTC (rev 194473)
@@ -181,6 +181,7 @@
ASSERT_EQ(&a, ptr.get());
#if COMPILER(CLANG)
#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wself-move"
#endif
ptr = WTF::move(ptr);
Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/RefPtr.cpp (194472 => 194473)
--- trunk/Tools/TestWebKitAPI/Tests/WTF/RefPtr.cpp 2015-12-31 23:49:46 UTC (rev 194472)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/RefPtr.cpp 2016-01-01 00:19:20 UTC (rev 194473)
@@ -272,6 +272,7 @@
ASSERT_EQ(&a, ptr.get());
#if COMPILER(CLANG)
#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wself-move"
#endif
ptr = WTF::move(ptr);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes