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

Unified Diff: ios/chrome/browser/snapshots/snapshot_cache_unittest.mm

Issue 2595213003: Enable -Wundeclared-selector on ios. (Closed)
Patch Set: Fix more warnings. Created 4 years 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: ios/chrome/browser/snapshots/snapshot_cache_unittest.mm
diff --git a/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm b/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm
index f5b33efeb2957ee846021d04a1291f9790ba2070..1e33eb09de9a3cf24e6f04b877e7175e1c1c3f34 100644
--- a/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm
+++ b/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm
@@ -199,8 +199,11 @@ class SnapshotCacheTest : public PlatformTest {
void TriggerMemoryWarning() {
// _performMemoryWarning is a private API and must not be compiled into
// official builds.
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wundeclared-selector"
[[UIApplication sharedApplication]
performSelector:@selector(_performMemoryWarning)];
+#pragma clang diagnostic pop
}
web::TestWebThreadBundle thread_bundle_;

Powered by Google App Engine
This is Rietveld 408576698