Commit 9dcf127f authored by Victor Zverovich's avatar Victor Zverovich

Workaround a bogus MSVC warning

parent b8b06e3e
...@@ -136,12 +136,14 @@ int safe_strerror( ...@@ -136,12 +136,14 @@ int safe_strerror(
ERANGE : result; ERANGE : result;
} }
#if !FMT_MSC_VER
// Fallback to strerror if strerror_r and strerror_s are not available. // Fallback to strerror if strerror_r and strerror_s are not available.
int fallback(internal::null<>) { int fallback(internal::null<>) {
errno = 0; errno = 0;
buffer_ = strerror(error_code_); buffer_ = strerror(error_code_);
return errno; return errno;
} }
#endif
public: public:
dispatcher(int err_code, char *&buf, std::size_t buf_size) dispatcher(int err_code, char *&buf, std::size_t buf_size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment