1
0
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:
Uwe Hermann 2015-04-03 22:03:26 +02:00
parent ac323d80e0
commit 23e7fa372a

View File

@ -322,8 +322,10 @@ fail:
SP_API enum sp_return sp_list_ports(struct sp_port ***list_ptr) SP_API enum sp_return sp_list_ports(struct sp_port ***list_ptr)
{ {
#ifndef NO_ENUMERATION
struct sp_port **list; struct sp_port **list;
int ret; int ret;
#endif
TRACE("%p", list_ptr); TRACE("%p", list_ptr);