diff options
author | Neil MacIntosh <neilmac@microsoft.com> | 2016-09-21 13:21:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-21 13:21:14 -0700 |
commit | e4a34128a80b163e176e100f3bc62c5bd2f9f681 (patch) | |
tree | 0bb46f023e2802ffc644f3c9415ea44fc0ea32ee | |
parent | fd5ad87bf25cb5e87104ee58106dee9bc809cd93 (diff) | |
parent | 4e7997190cbc0700f1a796d36a8ee63d3d86f34d (diff) | |
download | platform_external_Microsoft-GSL-e4a34128a80b163e176e100f3bc62c5bd2f9f681.tar.gz platform_external_Microsoft-GSL-e4a34128a80b163e176e100f3bc62c5bd2f9f681.tar.bz2 platform_external_Microsoft-GSL-e4a34128a80b163e176e100f3bc62c5bd2f9f681.zip |
Turn off warning about function-style casts in gsl_byte
-rw-r--r-- | gsl/gsl_byte | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gsl/gsl_byte b/gsl/gsl_byte index 9962ab4..3f77923 100644 --- a/gsl/gsl_byte +++ b/gsl/gsl_byte @@ -21,6 +21,11 @@ #ifdef _MSC_VER +#pragma warning(push) + +// don't warn about function style casts in byte related operators +#pragma warning(disable : 26493) + // MSVC 2013 workarounds #if _MSC_VER <= 1800 @@ -149,6 +154,8 @@ inline constexpr byte to_byte() noexcept #endif // _MSC_VER <= 1800 +#pragma warning(pop) + #endif // _MSC_VER #endif // GSL_BYTE_H |