From: Uwe Hermann Date: Thu, 31 Jul 2014 21:09:24 +0000 (+0200) Subject: serialport.c: Fix an 'unused variable' compiler warning. X-Git-Tag: libserialport-0.1.1~118 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5a8810e2b2e0ccd2567306469f7fc668337af415;p=libserialport.git serialport.c: Fix an 'unused variable' compiler warning. --- diff --git a/serialport.c b/serialport.c index ef61941..9671731 100644 --- a/serialport.c +++ b/serialport.c @@ -55,7 +55,9 @@ static enum sp_return set_config(struct sp_port *port, struct port_data *data, SP_API enum sp_return sp_get_port_by_name(const char *portname, struct sp_port **port_ptr) { struct sp_port *port; +#ifndef NO_PORT_METADATA enum sp_return ret; +#endif int len; TRACE("%s, %p", portname, port_ptr);