Disable C28020 warning in json.hpp as a stop gap on Windows. (#2535)

This commit is contained in:
Ahson Khan 2021-07-01 14:04:16 -07:00 committed by GitHub
parent a6f3b530d5
commit a2f027f0df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15731,6 +15731,12 @@ namespace Azure { namespace Core { namespace Json { namespace _internal { namesp
}
}
#if defined(_MSC_VER)
#pragma warning(push)
// warning C28020: The expression '0<=_Param_(1)&&_Param_(1)<=400-1' is not true at this call.
#pragma warning(disable : 28020)
#endif
/*!
@brief check whether a string is UTF-8 encoded
@ -15795,6 +15801,10 @@ namespace Azure { namespace Core { namespace Json { namespace _internal { namesp
return state;
}
#if defined(_MSC_VER)
#pragma warning(pop)
#endif
/*
* Overload to make the compiler happy while it is instantiating
* dump_integer for number_unsigned_t.