From 507a579c9a5e778ae737c7066df4864c5f1d2ccc Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 19 Apr 2013 15:35:21 +0000 Subject: -Wpointer-sign: dwarf2-frame.c: Pass unsigned variable to safe_read_uleb128. The 'bytes_read' change should be obvious. As for the other hunk, we're passing the address of the signed 'offset' to safe_read_uleb128, which expects unsigned. Fix it by passing the address of the unsigned 'utmp' instead, like already done on other spots in the file. gdb/ 2013-04-19 Pedro Alves * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed 'offset', and adjust. --- gdb/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d2e7f3..61fba01 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2013-04-19 Pedro Alves + * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local + unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed + 'offset', and adjust. + +2013-04-19 Pedro Alves + * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *. (read_index_from_section): Add cast to 'char *'. -- cgit v1.1