From: Eli Zaretskii Date: Mon, 10 Sep 2018 12:44:48 +0000 (+0300) Subject: Avoid compiler warnings due to get_proc_addr X-Git-Tag: emacs-27.0.90~4445 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=80ca2b81097520164e002c04a25813996d3aeb54;p=emacs.git 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 . --- 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) {