From: Uwe Hermann Date: Thu, 16 Jan 2014 23:37:58 +0000 (+0100) Subject: hameg-hmo: Fix two compiler warnings on Windows. X-Git-Tag: libsigrok-0.3.0~260 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=55eb33dbf8cec9d7871187fe08d834180203b484;p=libsigrok.git hameg-hmo: Fix two compiler warnings on Windows. CC libsigrok_hw_hameg_hmo_la-protocol.lo api.c: In function 'auto_find_usb': api.c:70:39: warning: unused parameter 'vendor_id' [-Wunused-parameter] static GSList *auto_find_usb(uint16_t vendor_id, uint16_t product_id) ^ api.c:70:59: warning: unused parameter 'product_id' [-Wunused-parameter] static GSList *auto_find_usb(uint16_t vendor_id, uint16_t product_id) ^ --- diff --git a/hardware/hameg-hmo/api.c b/hardware/hameg-hmo/api.c index 638797e2..2dd3c011 100644 --- a/hardware/hameg-hmo/api.c +++ b/hardware/hameg-hmo/api.c @@ -189,6 +189,9 @@ skip_device: return tty_devs; #else + (void)vendor_id; + (void)product_id; + return NULL; #endif }