mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Fix two compiler warnings on platforms without enumeration support.
serialport.c: In function 'sp_list_ports': serialport.c:326:6: warning: unused variable 'ret' [-Wunused-variable] int ret; ^ serialport.c:325:19: warning: unused variable 'list' [-Wunused-variable] struct sp_port **list; ^
This commit is contained in:
parent
ac323d80e0
commit
23e7fa372a
@ -322,8 +322,10 @@ fail:
|
||||
|
||||
SP_API enum sp_return sp_list_ports(struct sp_port ***list_ptr)
|
||||
{
|
||||
#ifndef NO_ENUMERATION
|
||||
struct sp_port **list;
|
||||
int ret;
|
||||
#endif
|
||||
|
||||
TRACE("%p", list_ptr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user