Fix two warnings when libserialport is not used.

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)
This commit is contained in:
Uwe Hermann 2015-01-17 21:47:59 +01:00
parent 0959ed3d02
commit 718a9d382f
1 changed files with 4 additions and 1 deletions

View File

@ -25,11 +25,14 @@
SR_API GSList *sr_serial_list(const struct sr_dev_driver *driver)
{
(void)driver;
return NULL;
}
SR_API void sr_serial_free(struct sr_serial_port *serial)
{
(void)serial;
}
#endif