Cast gdb_dlsym return value
gdb/ChangeLog: * jit.c (jit_reader_load): Add cast.
This commit is contained in:
parent
d6f85c8421
commit
15cf126c04
@ -1,3 +1,7 @@
|
||||
2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* jit.c (jit_reader_load): Add cast.
|
||||
|
||||
2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* dwarf2read.c (partial_die_full_name): Add cast.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user