diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-29 13:41:14 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-10-29 13:43:02 -0400 |
commit | 15cf126c04a3720fb856f7f3bfb56869d5855939 (patch) | |
tree | d6bca657fed2b2c6145448969388ab51f8804147 /gdb/jit.c | |
parent | d6f85c8421acaf09fa5a25ae2621819889d54038 (diff) | |
download | gdb-15cf126c04a3720fb856f7f3bfb56869d5855939.zip gdb-15cf126c04a3720fb856f7f3bfb56869d5855939.tar.gz gdb-15cf126c04a3720fb856f7f3bfb56869d5855939.tar.bz2 |
Cast gdb_dlsym return value
gdb/ChangeLog:
* jit.c (jit_reader_load): Add cast.
Diffstat (limited to 'gdb/jit.c')
-rw-r--r-- | gdb/jit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |