mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-28 17:28:15 +08:00
Silence "unused" warning for strerror_r
This commit is contained in:
parent
800ae143aa
commit
6a31edcb38
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());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user