• Show log

    Commit

  • Hash : 129456fe
    Author : Ryan C. Gordon
    Date : 2014-02-07T11:52:35

    Tell Clang's static analysis that SDL_assert() is an assertion handler.
    
    This lets it know, for example, that when you do this...
    
        SDL_assert(ptr != NULL);
    
    ...that (ptr) is definitely not NULL at this point in the program, for the
    sake of static analysis. While a buggy program could definitely trigger this
    assertion, Clang assumes your assertion check is covering it and won't
    report possible NULL dereferences after this point.
    
    Since SDL_assert might continue if the user clicks "ignore", without this
    change Clang would notice you checked for NULL (meaning that NULL is a real
    possibility here) and still wrote code outside of that test branch that
    dereferences the pointer, and thus would always trigger false positives.
    
    Static analysis is fun!
    

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