This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH c++ 5/6] Cast gdb_dlsym return value
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Thu, 29 Oct 2015 09:02:46 -0400
- Subject: [PATCH c++ 5/6] Cast gdb_dlsym return value
- Authentication-results: sourceware.org; auth=none
- References: <1446123767-25046-1-git-send-email-simon dot marchi at polymtl dot ca>
gdb/ChangeLog:
* jit.c (jit_reader_load): Add cast.
---
gdb/jit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/jit.c b/gdb/jit.c
index 7c267d7..ddc223d 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);
--
2.6.1