mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
-Wpointer-sign: cp-valprint.c.
Fix: ../../src/gdb/cp-valprint.c: In function ‘cp_print_class_member’: ../../src/gdb/cp-valprint.c:793:3: error: pointer targets in passing argument 2 of ‘cp_find_class_member’ differ in signedness [-Werror=pointer-sign] ../../src/gdb/cp-valprint.c:721:1: note: expected ‘int *’ but argument is of type ‘unsigned int *’ 'fieldno' is used throughout as 'int', so just follow the trend. gdb/ 2013-04-19 Pedro Alves <palves@redhat.com> * cp-valprint.c (cp_print_class_member): Change type of 'fieldno' local to int.
This commit is contained in:
parent
c714b42695
commit
9f8afa72d1
@ -1,3 +1,8 @@
|
||||
2013-04-19 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
|
||||
local to int.
|
||||
|
||||
2013-04-19 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* ada-lang.c (print_it_exception): Add cast to gdb_byte *.
|
||||
|
@ -768,7 +768,7 @@ cp_print_class_member (const gdb_byte *valaddr, struct type *type,
|
||||
print it. */
|
||||
struct type *domain = TYPE_DOMAIN_TYPE (type);
|
||||
LONGEST val;
|
||||
unsigned int fieldno;
|
||||
int fieldno;
|
||||
|
||||
val = extract_signed_integer (valaddr,
|
||||
TYPE_LENGTH (type),
|
||||
|
Loading…
Reference in New Issue
Block a user