use auto to silence warning
This commit is contained in:
parent
8e3f51c400
commit
800131ef91
@ -1161,7 +1161,7 @@ void catstrerror(string *reason, const char *what, int _errno)
|
||||
// At worse we get no message at all here.
|
||||
errbuf[0] = 0;
|
||||
// We don't use ret, it's there to silence a cc warning
|
||||
char *ret = (char *)strerror_r(_errno, errbuf, ERRBUFSZ);
|
||||
auto ret = strerror_r(_errno, errbuf, ERRBUFSZ);
|
||||
(void)ret;
|
||||
reason->append(errbuf);
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user