mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
Avoid compiler warning in dynlib.c
* src/dynlib.c (dynlib_addr) [WINDOWSNT]: Rename the first argument to be consistent with other platforms. Cast it to 'void *' to avoid compiler warning as result of changing the function's signature as part of the last recent change in dynlib.c.
This commit is contained in:
parent
a241e45b5a
commit
83cdf7bf15
1 changed files with 2 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ dynlib_sym (dynlib_handle_ptr h, const char *sym)
|
|||
}
|
||||
|
||||
void
|
||||
dynlib_addr (void (*addr) (void), const char **fname, const char **symname)
|
||||
dynlib_addr (void (*funcptr) (void), const char **fname, const char **symname)
|
||||
{
|
||||
static char dll_filename[MAX_UTF8_PATH];
|
||||
static GetModuleHandleExA_Proc s_pfn_Get_Module_HandleExA = NULL;
|
||||
|
|
@ -132,6 +132,7 @@ dynlib_addr (void (*addr) (void), const char **fname, const char **symname)
|
|||
HMODULE hm_dll = NULL;
|
||||
wchar_t mfn_w[MAX_PATH];
|
||||
char mfn_a[MAX_PATH];
|
||||
void *addr = (void *) funcptr;
|
||||
|
||||
/* Step 1: Find the handle of the module where ADDR lives. */
|
||||
if (os_subtype == OS_9X
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue