From: Uwe Hermann Date: Sat, 17 Jan 2015 20:47:59 +0000 (+0100) Subject: Fix two warnings when libserialport is not used. X-Git-Tag: libsigrok-0.4.0~678 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=718a9d382ff03857105c737526effbc0d097349c;p=libsigrok.git 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) --- diff --git a/src/fallback.c b/src/fallback.c index 897694d7..d66c4b8d 100644 --- a/src/fallback.c +++ b/src/fallback.c @@ -25,11 +25,14 @@ 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