Cast gdb_dlsym return value
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 29 Oct 2015 17:41:14 +0000 (13:41 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 29 Oct 2015 17:43:02 +0000 (13:43 -0400)
gdb/ChangeLog:

* jit.c (jit_reader_load): Add cast.

gdb/ChangeLog
gdb/jit.c

index f5e3e34ef2728e5e0f031bd90eaa9d1285de574c..8b79abbbe887e77a787943995511b00cfaa47dc9 100644 (file)
@@ -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.
index 7c267d79d1a2d4ecb8cbc4f8afb2901409fca20e..ddc223dcb37730c239d1b76dc42f5d6f6aff6d78 100644 (file)
--- 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);