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

Unified Diff: third_party/libusb/BUILD.gn

Issue 2253003002: Make libusb deprecation warning go away on OSX 10.12. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libusb/BUILD.gn
diff --git a/third_party/libusb/BUILD.gn b/third_party/libusb/BUILD.gn
index a415925f9ba4c4fd7c50d10b0361e0db17e2f522..dcb514c61db288a169631bc6f055ef1b53474bc3 100644
--- a/third_party/libusb/BUILD.gn
+++ b/third_party/libusb/BUILD.gn
@@ -80,7 +80,12 @@ static_library("libusb") {
}
if (is_mac) {
- defines += [ "OS_DARWIN=1" ]
+ defines += [
+ "OS_DARWIN=1",
+
+ # Needed on OSX 10.12 to silence a deprecation warning.
+ "OBJC_SILENCE_GC_DEPRECATIONS=1",
+ ]
} else {
sources -= [
"src/libusb/os/darwin_usb.c",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698