1
0
Эх сурвалжийг харах

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?
Sam Lantinga 1 жил өмнө
parent
commit
06f8f9a891

+ 10 - 0
src/video/yuv2rgb/yuv_rgb_std_func.h

@@ -69,6 +69,12 @@
 #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(
 	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, 
@@ -227,6 +233,10 @@ void STD_FUNCTION_NAME(
 	#undef uv_y_sample_interval
 }
 
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
 #undef STD_FUNCTION_NAME
 #undef YUV_FORMAT
 #undef RGB_FORMAT