diff options
author | Elliott Hughes <enh@google.com> | 2017-05-05 16:26:00 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-05-05 16:26:30 -0700 |
commit | 4acb36020bfa3cb63ed81358754758e76fc5787d (patch) | |
tree | 4ca7628a63d7d1b873ee060ddf01ec744d52d774 | |
parent | 484acce026c14c8303dee845b8021d5a11e7d1a7 (diff) | |
download | system_core-4acb36020bfa3cb63ed81358754758e76fc5787d.tar.gz system_core-4acb36020bfa3cb63ed81358754758e76fc5787d.tar.bz2 system_core-4acb36020bfa3cb63ed81358754758e76fc5787d.zip |
Fix macOS build.
system/core/adb/client/usb_libusb.cpp:162:20: error: unused function 'get_device_serial_path' [-Werror,-Wunused-function]
static std::string get_device_serial_path(libusb_device* device) {
^
Bug: N/A
Test: no choice but to submit and see...
Change-Id: I0026d3273891588c27df5ccd71c41ad9907b038d
-rw-r--r-- | adb/client/usb_libusb.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/adb/client/usb_libusb.cpp b/adb/client/usb_libusb.cpp index a32c60545..7539e5a9f 100644 --- a/adb/client/usb_libusb.cpp +++ b/adb/client/usb_libusb.cpp @@ -159,6 +159,7 @@ static std::string get_device_address(libusb_device* device) { libusb_get_device_address(device)); } +#if defined(__linux__) static std::string get_device_serial_path(libusb_device* device) { uint8_t ports[7]; int port_count = libusb_get_port_numbers(device, ports, 7); @@ -172,6 +173,7 @@ static std::string get_device_serial_path(libusb_device* device) { path += "/serial"; return path; } +#endif static bool endpoint_is_output(uint8_t endpoint) { return (endpoint & LIBUSB_ENDPOINT_DIR_MASK) == LIBUSB_ENDPOINT_OUT; |