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:
Peter Johnson 2008-05-25 17:02:24 +00:00
parent 13665a69db
commit 3196e62ef6

View file

@ -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)