mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 11:58:12 +00:00
Fixed warning C6326: Potential comparison of a constant with another constant.
Also fixed warning C6239: (<non-zero constant> && <expression>) always evaluates to the result of <expression>. Did you intend to use the bitwise-and operator?
This commit is contained in:
@@ -69,6 +69,12 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef _MSC_VER /* Visual Studio analyzer can't tell that we're building this with different constants */
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable : 6239)
|
||||||
|
#pragma warning(disable : 6326)
|
||||||
|
#endif
|
||||||
|
|
||||||
void STD_FUNCTION_NAME(
|
void STD_FUNCTION_NAME(
|
||||||
uint32_t width, uint32_t height,
|
uint32_t width, uint32_t height,
|
||||||
const uint8_t *Y, const uint8_t *U, const uint8_t *V, uint32_t Y_stride, uint32_t UV_stride,
|
const uint8_t *Y, const uint8_t *U, const uint8_t *V, uint32_t Y_stride, uint32_t UV_stride,
|
||||||
@@ -227,6 +233,10 @@ void STD_FUNCTION_NAME(
|
|||||||
#undef uv_y_sample_interval
|
#undef uv_y_sample_interval
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
#undef STD_FUNCTION_NAME
|
#undef STD_FUNCTION_NAME
|
||||||
#undef YUV_FORMAT
|
#undef YUV_FORMAT
|
||||||
#undef RGB_FORMAT
|
#undef RGB_FORMAT
|
||||||
|
Reference in New Issue
Block a user