Fixed warning C6326: Potential comparison of a constant with another constant.

This commit is contained in:
Sam Lantinga committed 2023-12-05 09:31:13 -08:00
1 parent c9b243fb56
commit 0dad56354c
2 files changed
+5 -2

No files matched your search

+5 -1
View File
@@ -44,7 +44,11 @@
#define HAVE_GCC_DIAGNOSTIC_PRAGMA 1 #define HAVE_GCC_DIAGNOSTIC_PRAGMA 1
#endif #endif
#ifdef _MSC_VER // SDL_MAX_SMALL_ALLOC_STACKSIZE is smaller than _ALLOCA_S_THRESHOLD and should be generally safe #ifdef _MSC_VER /* We use constant comparison for generated code */
#pragma warning(disable : 6326)
#endif
#ifdef _MSC_VER /* SDL_MAX_SMALL_ALLOC_STACKSIZE is smaller than _ALLOCA_S_THRESHOLD and should be generally safe */
#pragma warning(disable : 6255) #pragma warning(disable : 6255)
#endif #endif
#define SDL_MAX_SMALL_ALLOC_STACKSIZE 128 #define SDL_MAX_SMALL_ALLOC_STACKSIZE 128
-1
View File
@@ -72,7 +72,6 @@
#ifdef _MSC_VER /* Visual Studio analyzer can't tell that we're building this with different constants */ #ifdef _MSC_VER /* Visual Studio analyzer can't tell that we're building this with different constants */
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 6239) #pragma warning(disable : 6239)
#pragma warning(disable : 6326)
#endif #endif
void STD_FUNCTION_NAME( void STD_FUNCTION_NAME(