mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Quiet a warning about casting from a data to function pointer.
This is required to get a function pointer from dlsym(). svn path=/trunk/yasm/; revision=2107
This commit is contained in:
parent
13665a69db
commit
3196e62ef6
1 changed files with 2 additions and 1 deletions
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "libyasm-stdint.h"
|
||||
#include "yasm-plugin.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
|
|
@ -96,7 +97,7 @@ load_plugin(const char *name)
|
|||
init_plugin =
|
||||
(void (*)(void))GetProcAddress((HINSTANCE)lib, "yasm_init_plugin");
|
||||
#elif defined(__GNUC__)
|
||||
init_plugin = (void (*)(void))dlsym(lib, "yasm_init_plugin");
|
||||
init_plugin = (void (*)(void))(uintptr_t)dlsym(lib, "yasm_init_plugin");
|
||||
#endif
|
||||
|
||||
if (!init_plugin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue