From 5a8810e2b2e0ccd2567306469f7fc668337af415 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 31 Jul 2014 23:09:24 +0200 Subject: [PATCH] serialport.c: Fix an 'unused variable' compiler warning. --- serialport.c | 2 ++ 1 file changed, 2 insertions(+) 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);