• Show log

    Commit

  • Hash : 7be4fca6
    Author : Ozkan Sezer
    Date : 2018-10-15T11:01:00

    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
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_w kc3_lang_org thodg_l thodg_m www_kmx_io thodg
    Tags