From 4e7997190cbc0700f1a796d36a8ee63d3d86f34d Mon Sep 17 00:00:00 2001 From: Michael Balszun Date: Wed, 21 Sep 2016 21:39:28 +0200 Subject: Turn off warning about function-styl casts in gsl_byte --- gsl/gsl_byte | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3