]> sigrok.org Git - libsigrok.git/commitdiff
Fix two warnings when libserialport is not used.
authorUwe Hermann <redacted>
Sat, 17 Jan 2015 20:47:59 +0000 (21:47 +0100)
committerUwe Hermann <redacted>
Sat, 17 Jan 2015 20:47:59 +0000 (21:47 +0100)
    CC       src/fallback.lo
  src/fallback.c: In function 'sr_serial_list':
  src/fallback.c:26:59: warning: unused parameter 'driver' [-Wunused-parameter]
   SR_API GSList *sr_serial_list(const struct sr_dev_driver *driver)
                                                             ^
  src/fallback.c: In function 'sr_serial_free':
  src/fallback.c:31:51: warning: unused parameter 'serial' [-Wunused-parameter]
   SR_API void sr_serial_free(struct sr_serial_port *serial)

src/fallback.c

index 897694d7330e2252cc53dac4aad2b7fb1c7df48c..d66c4b8d2406b5dba2457a1542d84db6bf6a0343 100644 (file)
 
 SR_API GSList *sr_serial_list(const struct sr_dev_driver *driver)
 {
-    return NULL;
+       (void)driver;
+
+       return NULL;
 }
 
 SR_API void sr_serial_free(struct sr_serial_port *serial)
 {
+       (void)serial;
 }
 
 #endif