SDL2/src
ulatekh ec58a817ef Fixes made in response to running a static code analyzer under MS Windows.
Most of these are probably harmless, but the changes to SDL_immdevice.c and SDL_pixels.c appear to have fixed genuine bugs.

SDL_audiocvt.c: By separating the calculation of the divisor, I got rid of the suspicion that dividing a double by an integer led to loss of precision.
SDL_immdevice.c: Added a missing test, one that could have otherwise led to dereferencing a null pointer.
SDL_events.c, SDL_gamecontroller.c, SDL_joystick.c, SDL_malloc.c, SDL_video.c: Made it clear the return values weren't used.
SDL_hidapi_shield.c: The size is zero, so nothing bad would have happened, but the SDL_memset() was still being given an address outside of the array's range.
SDL_dinputjoystick.c: Initialize local data, just in case IDirectInputDevice8_GetProperty() isn't guaranteed to write to it.
SDL_render_sw.c: drawstate.viewport could be null (as seen on line 691).
SDL.c: SDL_MostSignificantBitIndex32() could return -1, though I don't know if you want to cope with that (what I did) or SDL_assert() that it can't happen.
SDL_hints.c: Replaced boolean tests on pointer values with comparisons to NULL.
SDL_pixels.c: Looks like the switch is genuinely missing a break!
SDL_rect_impl.h: The MacOS static checker pointed out issues with the X comparisons that were handled by assertions; I added assertions for the Y comparisons.
SDL_yuv.c, SDL_windowskeyboard.c, SDL_windowswindow.c: Checked error-result returns.
2022-11-16 12:43:20 -05:00
..
atomic fix SOLARIS_ATOMICS 2022-11-09 12:45:14 -05:00
audio Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
core Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
cpuinfo fix a few 'unused but set variable' and 'unused function' warnings 2022-10-24 10:36:56 -07:00
dynapi Added SDL_strcasestr() for a case insensitive version of SDL_strstr() 2022-11-05 15:58:30 -07:00
events Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
file N3DS: Refactor N3DS_FileOpen. 2022-11-14 21:24:10 -08:00
filesystem N3DS: Prepend PrefPath with sdmc:. 2022-11-14 21:24:10 -08:00
haptic haptic: Deal with deprecated macOS symbol. 2022-11-16 10:08:40 -05:00
hidapi Fixed building without linux/input.h 2022-11-11 10:25:52 -08:00
joystick Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
libm N3DS port (squashed) 2022-10-10 08:50:59 -07:00
loadso SDL_SYSLOADSO.c: Correct spelling mistake 2022-10-30 11:24:42 -04:00
locale N3DS port (squashed) 2022-10-10 08:50:59 -07:00
main SDL_PS2_MAIN.C: Correct spelling mistake 2022-10-30 11:24:42 -04:00
misc Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
power N3DS port (squashed) 2022-10-10 08:50:59 -07:00
render Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
sensor N3DS: Use designated initialiser for drivers. 2022-11-14 21:24:10 -08:00
stdlib Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
test Do case insensitive matching on test cases 2022-09-19 14:37:10 -07:00
thread PSP: Fix type mismatch warnings. 2022-10-10 22:31:16 -07:00
timer N3DS port (squashed) 2022-10-10 08:50:59 -07:00
video Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
SDL.c Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
SDL_assert.c hide SDL_GenerateAssertionReport in case SDL_ASSERT_LEVEL is 0 2022-07-25 14:26:46 -07:00
SDL_assert_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dataqueue.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dataqueue.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_error.c Fix SIGSEV in SDL_error (After removing the limit on the size of the SDL error message) (see #5795) 2022-06-28 09:46:12 +02:00
SDL_error_c.h Removed the limit on the size of the SDL error message 2022-06-27 16:59:50 -07:00
SDL_guid.c Refactoring: move GUID operations out of Joystick 2022-06-04 17:22:13 -07:00
SDL_hints.c Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
SDL_hints_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_internal.h Fix enabling SDL_DYNAMIC_API in OpenWatcom builds 2022-05-19 20:11:10 +03:00
SDL_list.c Add SDL_list.c/h 2022-04-01 08:01:44 +02:00
SDL_list.h Add SDL_list.c/h 2022-04-01 08:01:44 +02:00
SDL_log.c N3DS: Put SDL_Log.txt in the proper directory. 2022-11-14 21:24:10 -08:00
SDL_log_c.h Added declaration of SDL_LogInit() and SDL_LogQuit() 2022-04-28 15:01:34 -07:00
SDL_utils.c Fixed declaration-after-statement warning 2022-07-18 07:31:23 -07:00
SDL_utils_c.h Fixed comment (thanks @pionere!) 2022-07-18 07:18:56 -07:00