summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-15 22:26:23 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-24 17:27:23 +0100
commitc512d58f20428fed43f75565e83dad40f32e9c15 (patch)
treed8423c363861e2307dbcde7da9d1fc4dbda296c3 /deps
parent38e6b287e7436758d68228a4cecae9dace7b750c (diff)
downloadlibgit2-c512d58f20428fed43f75565e83dad40f32e9c15.tar.gz
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.
Diffstat (limited to 'deps')
0 files changed, 0 insertions, 0 deletions