From 4f9d58564ed8ee81afc3884fa35a57b16e9bacca Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 4 Jan 2018 22:16:03 -0500 Subject: [PATCH] darwin: Suppress deprecation warning when building against 10.13 SDK Signed-off-by: Chris Dickens --- libusb/os/darwin_usb.c | 4 ++++ libusb/version_nano.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c index 4eb25aa..6279a4f 100644 --- a/libusb/os/darwin_usb.c +++ b/libusb/os/darwin_usb.c @@ -36,6 +36,10 @@ #include #include +/* Suppress warnings about the use of the deprecated objc_registerThreadWithCollector + * function. Its use is also conditionalized to only older deployment targets. */ +#define OBJC_SILENCE_GC_DEPRECATIONS 1 + #include #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 && MAC_OS_X_VERSION_MIN_REQUIRED < 101200 #include diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 3453e23..f263a06 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11291 +#define LIBUSB_NANO 11292