lazyload.h: use an even more generic function pointer than FARPROC
commit2d84c4ed571215f4cdd5ea05a46861974d10d123
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Sun, 26 Sep 2021 10:05:12 +0000 (26 03:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Sep 2021 20:13:58 +0000 (27 13:13 -0700)
treec561be2893bdcd6795c963c51707c9d1dfdcf582
parentd2c470f9bc4192a0b33ebea73986d14c32b3a361
lazyload.h: use an even more generic function pointer than FARPROC

gcc will helpfully raise a -Wcast-function-type warning when casting
between functions that might have incompatible return types
(ex: GetUserNameExW returns bool which is only half the size of the
return type from FARPROC which is long long), so create a new type that
could be used as a completely generic function pointer and cast through
it instead.

Additionaly remove the -Wno-incompatible-pointer-types temporary
flag added in 27e0c3c (win32: allow building with pedantic mode
enabled, 2021-09-03), as it will be no longer needed.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/win32/lazyload.h
config.mak.dev