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:
parent
12056e2f75
commit
5a8810e2b2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user