1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

serialport.c: Fix an 'unused variable' compiler warning.

This commit is contained in:
Uwe Hermann 2014-07-31 23:09:24 +02:00
parent 12056e2f75
commit 5a8810e2b2

View File

@ -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);