diff options
author | Pedro Alves <palves@redhat.com> | 2013-04-19 15:36:24 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-04-19 15:36:24 +0000 |
commit | bf63885a12b4ff83174a400335f6258536e0ff2a (patch) | |
tree | 526b1f2d6b97f880c3dfeca7aef336472c2fcd92 /gdb/cp-valprint.c | |
parent | 72ba79c167998175b9302b5b83cb472625f886b8 (diff) | |
download | gdb-bf63885a12b4ff83174a400335f6258536e0ff2a.tar.gz |
-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.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 9a8b4d30088..0871848ec77 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -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), |