GCC: fix type of ‘rc’ defaults to ‘int’ [-Werror=implicit-int]
FossilOrigin-Name: 52a3b3ebac9e798f775d56fc2c24cc70477c316ec35e32477380d6044ac63d19
This commit is contained in:
parent
28a1e50d6b
commit
bef4687d08
@ -626,7 +626,7 @@ extern struct cw_strlist_elem mbag_item_strings[];
|
||||
#define cw_strerror(rc) cw_strrc(rc)
|
||||
*/
|
||||
|
||||
static inline const char * cw_strerror(rc) {
|
||||
static inline const char * cw_strerror(int rc) {
|
||||
if (rc<0){
|
||||
if (errno==EAGAIN)
|
||||
return "Timed out";
|
||||
|
Loading…
Reference in New Issue
Block a user