From 1fe3db79196fe0d08d87f65430b64a96f438e13a Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 28 Jul 2017 11:43:42 +0200 Subject: [PATCH] darwnin: fix compilation warning os/darwin_usb.c:81:14: warning: initializing 'char *' with an expression of type 'const char [12]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] static char *darwin_device_class = kIOUSBDeviceClassName; ^ ~~~~~~~~~~~~~~~~~~~~~ --- libusb/os/darwin_usb.c | 2 +- libusb/version_nano.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c index 9121163..9946222 100644 --- a/libusb/os/darwin_usb.c +++ b/libusb/os/darwin_usb.c @@ -78,7 +78,7 @@ static CFRunLoopSourceRef libusb_darwin_acfls = NULL; /* shutdown signal for eve static usbi_mutex_t darwin_cached_devices_lock = PTHREAD_MUTEX_INITIALIZER; static struct list_head darwin_cached_devices = {&darwin_cached_devices, &darwin_cached_devices}; -static char *darwin_device_class = kIOUSBDeviceClassName; +static const char *darwin_device_class = kIOUSBDeviceClassName; #define DARWIN_CACHED_DEVICE(a) ((struct darwin_cached_device *) (((struct darwin_device_priv *)((a)->os_priv))->dev)) diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 6f34b27..f887d1a 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11214 +#define LIBUSB_NANO 11215