use auto to silence warning

This commit is contained in:
Jean-Francois Dockes 2017-06-28 07:24:19 +02:00
parent 8e3f51c400
commit 800131ef91

View File

@ -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