Fix a warning on msvc/clang (#703)

This commit is contained in:
Victor Zverovich
2018-04-12 06:07:16 -07:00
parent 64440783ba
commit a9c0bb4b16

View File

@ -161,7 +161,7 @@ int safe_strerror(
ERANGE : result;
}
#ifdef __c2__
#ifdef __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
@ -173,7 +173,7 @@ int safe_strerror(
return errno;
}
#ifdef __c2__
#ifdef __clang__
# pragma clang diagnostic pop
#endif