mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-26 13:08:29 +00:00
Fixed warning C6326: Potential comparison of a constant with another constant.
This commit is contained in:
@@ -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
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user