Fix a compiler warning.
This fixes the following scan-build warning: serialport.c: In function 'sp_list_ports': serialport.c:354:1: warning: control reaches end of non-void function [-Wreturn-type]
This commit is contained in:
parent
b344a40bb2
commit
e019e72ec0
|
@ -192,6 +192,7 @@ extern void (*sp_debug_handler)(const char *format, ...);
|
|||
case SP_ERR_FAIL: RETURN_CODE(SP_ERR_FAIL); \
|
||||
case SP_ERR_MEM: RETURN_CODE(SP_ERR_MEM); \
|
||||
case SP_ERR_SUPP: RETURN_CODE(SP_ERR_SUPP); \
|
||||
default: RETURN_CODE(SP_ERR_FAIL); \
|
||||
} \
|
||||
} while (0)
|
||||
#define RETURN_OK() RETURN_CODE(SP_OK);
|
||||
|
|
Loading…
Reference in New Issue