• Show log

    Commit

  • Hash : c512d58f
    Author : Edward Thomson
    Date : 2019-06-15T22:26:23

    win32: cast WinAPI to void * before casting
    
    GetProcAddress is prototyped to return a `FARPROC`, which is meant to be
    a generic function pointer.  It's literally `int (FAR WINAPI * FARPROC)()`
    which gcc complains if you attempt to cast to a `void (*)(GIT_SRWLOCK *)`.
    Cast to a `void *` before casting to avoid warnings about the arguments.