[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 80ca2b8: Avoid compiler warnings due to get_proc_ad
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 80ca2b8: Avoid compiler warnings due to get_proc_addr |
Date: |
Mon, 10 Sep 2018 08:45:18 -0400 (EDT) |
branch: master
commit 80ca2b81097520164e002c04a25813996d3aeb54
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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
<address@hidden>.
---
src/w32common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/w32common.h b/src/w32common.h
index 4981bdf..e860dbc 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)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 80ca2b8: Avoid compiler warnings due to get_proc_addr,
Eli Zaretskii <=