Sam Lantinga
|
2b5c7db645
Fixed analyze warnings in SDL_render_d3d12.c
|
1 year ago |
Sam Lantinga
|
a28769759b
Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info'
|
1 year ago |
Sam Lantinga
|
6ee34380f4
Fixed warning C6011: Dereferencing NULL pointer 'viewport'.
|
1 year ago |
Sam Lantinga
|
230581f4a8
Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2).
|
1 year ago |
Sam Lantinga
|
3775d9be4b
Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations.
|
1 year ago |
Sam Lantinga
|
b512182222
Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'.
|
1 year ago |
Sam Lantinga
|
8a82f7e837
Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized
|
1 year ago |
Sam Lantinga
|
fda039e6f8
Fixed analyzer warnings for SDL_string.c
|
1 year ago |
Sam Lantinga
|
22f44aefe7
Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'.
|
1 year ago |
Sam Lantinga
|
eab2d97d07
Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2).
|
1 year ago |
Sam Lantinga
|
41bfcad5d7
Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'.
|
1 year ago |
Sam Lantinga
|
54dc73aa88
Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written.
|
1 year ago |
Sam Lantinga
|
0dad56354c
Fixed warning C6326: Potential comparison of a constant with another constant.
|
1 year ago |
Sam Lantinga
|
c9b243fb56
Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack.
|
1 year ago |
Sam Lantinga
|
4ccc53edfe
Fixed warning C6011: Dereferencing NULL pointer 'display'.
|
1 year ago |
Sam Lantinga
|
3db4695ac7
warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'.
|
1 year ago |
Sam Lantinga
|
c7d81d936a
Fixed warning C6031: Return value ignored: 'GetKeyboardState'.
|
1 year ago |
Sam Lantinga
|
69b9d44bdc
Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).
|
1 year ago |
Sam Lantinga
|
a9b87ee201
Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem
|
1 year ago |
Sam Lantinga
|
21f273ecc7
Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead.
|
1 year ago |
Sam Lantinga
|
0c4cb3d153
Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2).
|
1 year ago |
Sam Lantinga
|
06f8f9a891
Fixed warning C6326: Potential comparison of a constant with another constant.
|
1 year ago |
Sam Lantinga
|
3e54061fa8
Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'.
|
1 year ago |
Sam Lantinga
|
226f8fde09
Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did.
|
1 year ago |
Sam Lantinga
|
fe6b3ab0b0
Fixed warning C6031: Return value ignored: 'CLSIDFromString'.
|
1 year ago |
Sam Lantinga
|
f3b0149756
Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2).
|
1 year ago |
Sam Lantinga
|
6cfce101fb
Don't call the property cleanup function if setting the property fails
|
1 year ago |
Sam Lantinga
|
14380ec48a
Fixed signed/unsigned comparison warning
|
1 year ago |
Sam Lantinga
|
ac0751a652
Added SDL_strnstr()
|
1 year ago |
Sylvain
|
7c71e72193
SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1).
|
1 year ago |