diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-03-16 10:22:29 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-03-16 10:29:37 +0300 |
commit | ca7f946d4b5b35c630c5fe6b279edd5be9218a8f (patch) | |
tree | 457fc6819975e9c8231c523395139c96d9fac52e /dyn_load.c | |
parent | 6ff56b1ab263f673379313ef74e7b9849874f951 (diff) | |
download | bdwgc-ca7f946d4b5b35c630c5fe6b279edd5be9218a8f.tar.gz |
Eliminate 'ISO C forbids object to function pointer conversion' warning
* dyn_load.c [SOLARISDL && !USE_PROC_FOR_LIBRARIES
&& SUNOS53_SHARED_LIB] (GC_FirstDLOpenedLinkMap): Cast result of dlsym()
to word type before casting it to a function pointer.
* pthread_support.c [GC_USE_DLOPEN_WRAP] (GC_init_real_syms): Likewise.
Diffstat (limited to 'dyn_load.c')
-rw-r--r-- | dyn_load.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -179,7 +179,7 @@ GC_FirstDLOpenedLinkMap(void) /* at program startup. */ if( dynStructureAddr == 0 ) { void* startupSyms = dlopen(0, RTLD_LAZY); - dynStructureAddr = (ElfW(Dyn)*)dlsym(startupSyms, "_DYNAMIC"); + dynStructureAddr = (ElfW(Dyn)*)(word)dlsym(startupSyms, "_DYNAMIC"); } # else dynStructureAddr = &_DYNAMIC; |