diff --git a/tz.cpp b/tz.cpp index f5caa8a..1f887c9 100644 --- a/tz.cpp +++ b/tz.cpp @@ -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()); }