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

Unified Diff: util/mach/exception_types.cc

Issue 1109273002: mac: Suppress partial availability warnings. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad.git@master
Patch Set: Comments from mark, round two. Created 5 years, 8 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
« no previous file with comments | « no previous file | util/stdlib/strnlen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/exception_types.cc
diff --git a/util/mach/exception_types.cc b/util/mach/exception_types.cc
index 4f6f8f75a87d69e8f30241d1e4278fcb5040ab8d..0199b3145a7cd1d6e3823860136ebe98b28a5d0e 100644
--- a/util/mach/exception_types.cc
+++ b/util/mach/exception_types.cc
@@ -35,6 +35,10 @@ extern "C" {
int proc_get_wakemon_params(pid_t pid, int* rate_hz, int* flags)
__OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+// Redeclare the method without the availability annotation to suppress the
+// -Wpartial-availability warning.
+int proc_get_wakemon_params(pid_t pid, int* rate_hz, int* flags);
+
} // extern "C"
#else
« no previous file with comments | « no previous file | util/stdlib/strnlen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698