]> sigrok.org Git - libsigrok.git/commitdiff
hameg-hmo: Fix two compiler warnings on Windows.
authorUwe Hermann <redacted>
Thu, 16 Jan 2014 23:37:58 +0000 (00:37 +0100)
committerUwe Hermann <redacted>
Thu, 16 Jan 2014 23:38:47 +0000 (00:38 +0100)
  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)
                                                           ^

hardware/hameg-hmo/api.c

index 638797e2fc5ccf1c4057d4e6aecbbe92627b46bd..2dd3c011a87712dfc184a19d1ea886db1cdd0112 100644 (file)
@@ -189,6 +189,9 @@ skip_device:
 
        return tty_devs;
 #else
+       (void)vendor_id;
+       (void)product_id;
+
        return NULL;
 #endif
 }