From 96d5817d7763df0abe286a8c4d6a36822684786b Mon Sep 17 00:00:00 2001 From: saturneric Date: Mon, 29 Jul 2024 01:07:00 +0200 Subject: [PATCH] fix: incompatible pointer type 'FARPROC' error: assignment to 'BOOL (*)(DWORD)' {aka 'int (*)(long unsigned int)'} from incompatible pointer type 'FARPROC' {aka 'long long int (*)()'} [-Wincompatible-pointer-types] --- src/gpgme-w32spawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpgme-w32spawn.c b/src/gpgme-w32spawn.c index 64913b01..d6de2cc2 100644 --- a/src/gpgme-w32spawn.c +++ b/src/gpgme-w32spawn.c @@ -243,7 +243,7 @@ my_spawn (char **argv, struct spawn_fd_item_s *fd_list, unsigned int flags) handle = LoadLibrary ("user32.dll"); if (handle) { - func = GetProcAddress (handle, "AllowSetForegroundWindow"); + func = (BOOL (*)(DWORD)) GetProcAddress (handle, "AllowSetForegroundWindow"); if (!func) FreeLibrary (handle); }