From 6a31edcb3843d4cdfe34a9c0e7a3d871a1fe38c8 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 6 Feb 2017 10:18:40 -0500 Subject: [PATCH] Silence "unused" warning for strerror_r --- tz.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }