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.
|
// At worse we get no message at all here.
|
||||||
errbuf[0] = 0;
|
errbuf[0] = 0;
|
||||||
// We don't use ret, it's there to silence a cc warning
|
// 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;
|
(void)ret;
|
||||||
reason->append(errbuf);
|
reason->append(errbuf);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user