Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2021-09-03 20:02:31 +0300
committerJunio C Hamano <gitster@pobox.com>2021-09-03 21:40:30 +0300
commit27e0c3c6cfead8fccd16105be497dba7ccd0ec6b (patch)
tree0c4bc32b547a378cabe191196dbfe4232012dbbf /compat/win32
parent153fb49e6083aed48da0b035ffdcf35c7b6eea0a (diff)
win32: allow building with pedantic mode enabled
In preparation to building with pedantic mode enabled, change a couple of places where the current mingw gcc compiler provided with the SDK reports issues. A full fix for the incompatible use of (void *) to store function pointers has been punted, with the minimal change to instead use a generic function pointer (FARPROC), and therefore the (hopefully) temporary need to disable incompatible pointer warnings. Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/win32')
-rw-r--r--compat/win32/lazyload.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/win32/lazyload.h b/compat/win32/lazyload.h
index 9e631c8593..d2056cdadf 100644
--- a/compat/win32/lazyload.h
+++ b/compat/win32/lazyload.h
@@ -37,7 +37,7 @@ struct proc_addr {
#define INIT_PROC_ADDR(function) \
(function = get_proc_addr(&proc_addr_##function))
-static inline void *get_proc_addr(struct proc_addr *proc)
+static inline FARPROC get_proc_addr(struct proc_addr *proc)
{
/* only do this once */
if (!proc->initialized) {