]> git.ipfire.org Git - thirdparty/git.git/commit
poll (mingw): allow compiling with GCC 8 and DEVELOPER=1
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 13 Jun 2019 11:49:44 +0000 (04:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Jun 2019 16:34:16 +0000 (09:34 -0700)
commit8d4679fe0995affd40301169fbfe6d679561bc64
tree6fe096888a65854e282fe13c5a60708c1da622e1
parentb697d92f56511e804b8ba20ccbe7bdc85dc66810
poll (mingw): allow compiling with GCC 8 and DEVELOPER=1

The return type of the `GetProcAddress()` function is `FARPROC` which
evaluates to `long long int (*)()`, i.e. it cannot be cast to the
correct function signature by GCC 8.

To work around that, we first cast to `void *` and go on with our merry
lives.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/poll/poll.c