diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-15 22:26:23 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-24 17:27:23 +0100 |
commit | c512d58f20428fed43f75565e83dad40f32e9c15 (patch) | |
tree | d8423c363861e2307dbcde7da9d1fc4dbda296c3 /deps | |
parent | 38e6b287e7436758d68228a4cecae9dace7b750c (diff) | |
download | libgit2-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