From: Simon Marchi Date: Thu, 29 Oct 2015 17:41:14 +0000 (-0400) Subject: Cast gdb_dlsym return value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15cf126c04a3720fb856f7f3bfb56869d5855939;p=binutils-gdb.git Cast gdb_dlsym return value gdb/ChangeLog: * jit.c (jit_reader_load): Add cast. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f5e3e34ef27..8b79abbbe88 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-10-29 Simon Marchi + + * jit.c (jit_reader_load): Add cast. + 2015-10-29 Simon Marchi * dwarf2read.c (partial_die_full_name): Add cast. diff --git a/gdb/jit.c b/gdb/jit.c index 7c267d79d1a..ddc223dcb37 100644 --- a/gdb/jit.c +++ b/gdb/jit.c @@ -177,7 +177,7 @@ jit_reader_load (const char *file_name) so = gdb_dlopen (file_name); old_cleanups = make_cleanup_dlclose (so); - init_fn = gdb_dlsym (so, reader_init_fn_sym); + init_fn = (reader_init_fn_type *) gdb_dlsym (so, reader_init_fn_sym); if (!init_fn) error (_("Could not locate initialization function: %s."), reader_init_fn_sym);