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

main
Sam Lantinga 2023-12-04 20:54:11 -08:00
parent c9b243fb56
commit 0dad56354c
2 changed files with 32 additions and 29 deletions

View File

@ -44,7 +44,11 @@
#define HAVE_GCC_DIAGNOSTIC_PRAGMA 1
#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)
#endif
#define SDL_MAX_SMALL_ALLOC_STACKSIZE 128

View File

@ -72,7 +72,6 @@
#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(