Ryujinx-SDL/src/power
Ozkan Sezer 7be4fca62c SDL_power.c: Adjust SDL_POWER_DISABLED ifdefs to avoid zero-size array
Otherwise if SDL_POWER_DISABLED is disabled (eg with --disable-power):

... with clang -pedantic:
src/power/SDL_power.c:48:50: warning: use of GNU empty initializer extension [-Wgnu-empty-initializer]
static SDL_GetPowerInfo_Impl implementations[] = {
                                                 ^
src/power/SDL_power.c:48:50: warning: zero size arrays are an extension [-Wzero-length-array]
2 warnings generated.

... with gcc -pedantic:
src/power/SDL_power.c:48:50: warning: ISO C forbids empty initializer braces [-Wpedantic]
src/power/SDL_power.c:48:50: warning: ISO C forbids empty initializer braces [-Wpedantic]
 static SDL_GetPowerInfo_Impl implementations[] = {
                                                  ^
src/power/SDL_power.c:48:30: error: zero or negative size array ?implementations?
 static SDL_GetPowerInfo_Impl implementations[] = {
                              ^~~~~~~~~~~~~~~

... with Watcom:
./src/power/SDL_power.c(85): Error! E1112: Initializer list cannot be empty
2018-10-15 11:01:00 +03:00
..
android Updated copyright for 2018 2018-01-03 10:03:25 -08:00
emscripten Updated copyright for 2018 2018-01-03 10:03:25 -08:00
haiku Updated copyright for 2018 2018-01-03 10:03:25 -08:00
linux Handle NULL return from SDL_DBus_GetContext() 2018-04-23 20:24:12 -07:00
macosx Updated copyright for 2018 2018-01-03 10:03:25 -08:00
psp Updated copyright for 2018 2018-01-03 10:03:25 -08:00
uikit Updated copyright for 2018 2018-01-03 10:03:25 -08:00
windows Updated copyright for 2018 2018-01-03 10:03:25 -08:00
winrt Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_power.c SDL_power.c: Adjust SDL_POWER_DISABLED ifdefs to avoid zero-size array 2018-10-15 11:01:00 +03:00
SDL_syspower.h SDL_GetPowerInfo_Hardwired is static in SDL_power.c 2018-10-14 23:55:02 +03:00