Skip to content

Commit

Permalink
Eliminate 'discarding const qualifier' gcc warning in GC_init_dyld
Browse files Browse the repository at this point in the history
(fix of commit f9b4b19)

Issue #627 (bdwgc).

* dyn_load.c [DARWIN && !NO_DYLD_BIND_FULLY_IMAGE && !USE_DYLD_TO_BIND]
(GC_init_dyld): Remove const qualifier from pointer type of dl_handle
local variable.
  • Loading branch information
ivmai committed Jun 15, 2024
1 parent b2552e0 commit 46333ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dyn_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ GC_INNER void GC_init_dyld(void)
# endif
# ifndef USE_DYLD_TO_BIND
{
const void *dl_handle = dlopen(NULL, RTLD_NOW);
void *dl_handle = dlopen(NULL, RTLD_NOW);

if (!dl_handle)
ABORT("dlopen failed (to bind fully image)");
Expand Down

0 comments on commit 46333ab

Please sign in to comment.