mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-02 12:14:27 +02:00
Silence "unused" warning for strerror_r
This commit is contained in:
2
tz.cpp
2
tz.cpp
@@ -3111,7 +3111,7 @@ current_zone()
|
|||||||
{
|
{
|
||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
char message[128];
|
char message[128];
|
||||||
strerror_r(errno, message, 128);
|
(void)strerror_r(errno, message, 128);
|
||||||
os << "realpath failure: errno = " << errno << "; " << message;
|
os << "realpath failure: errno = " << errno << "; " << message;
|
||||||
throw std::runtime_error(os.str());
|
throw std::runtime_error(os.str());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user