From 80ca2b81097520164e002c04a25813996d3aeb54 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 10 Sep 2018 15:44:48 +0300 Subject: [PATCH] Avoid compiler warnings due to get_proc_addr * src/w32common.h (get_proc_addr): Add prototype, to shut up GCC compilation warning. Reported by Martin Rudalics . --- src/w32common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/w32common.h b/src/w32common.h index 4981bdfd89a..e860dbce032 100644 --- a/src/w32common.h +++ b/src/w32common.h @@ -55,6 +55,7 @@ typedef void (* VOIDFNPTR) (void); /* Load a function address from a DLL. Cast the result via VOIDFNPTR to pacify -Wcast-function-type in GCC 8.1. The return value must be cast to the correct function pointer type. */ +INLINE VOIDFNPTR get_proc_addr (HINSTANCE, LPCSTR); INLINE VOIDFNPTR get_proc_addr (HINSTANCE handle, LPCSTR fname) { -- 2.39.2