• Show log

    Commit

  • Hash : 2419d267
    Author : Sam Lantinga
    Date : 2018-03-02T22:53:25

    Progress fixing bug 4100 - errors and warnings after changeset 11917
    
    Ozkan Sezer 2018-03-02 20:02:37 UTC
    http://hg.libsdl.org/SDL/rev/d702b0c54e52 resulted in an error and
    two warnings when compiled with mingw.
    
    1.  Error from SDL_windowstaskdialog.h:
    In file included from src/video/windows/SDL_windowsmessagebox.c:29:0:
    src/video/windows/SDL_windowstaskdialog.h:23:54: error: expected ')' before 'HWND'
    
    This is fixed by removing unnecessary annotations:
    
    2.  Warning from SDL_assert.c:
    src/SDL_assert.c: In function 'SDL_ExitProcess':
    src/SDL_assert.c:138:1: warning: 'noreturn' function does return
    
    Indeed ExitProcess() is prototyped with DECLSPEC_NORETURN, but
    TerminateProcess() is not.  This can be rectified by adding an
    exit() call in there. Do NOTE, however, that requires building
    with a libc:
    
    3.  Warning from SDL_windowsmessagebox.c:
    src/video/windows/SDL_windowsmessagebox.c: In function 'WIN_ShowMessageBox':
    src/video/windows/SDL_windowsmessagebox.c:513:9: warning: 'nCancelButton' may be used uninitialized in this function
    
    My lazy solution was manually initializing nCancelButton to 0.
    

  • 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_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags