Silence "unused" warning for strerror_r

This commit is contained in:
Howard Hinnant 2017-02-06 10:18:40 -05:00
parent 800ae143aa
commit 6a31edcb38

2
tz.cpp
View File

@ -3111,7 +3111,7 @@ current_zone()
{
std::ostringstream os;
char message[128];
strerror_r(errno, message, 128);
(void)strerror_r(errno, message, 128);
os << "realpath failure: errno = " << errno << "; " << message;
throw std::runtime_error(os.str());
}