src/gdb ChangeLog cp-valprint.c

palves@sourceware.org palves@sourceware.org
Fri Apr 19 15:36:00 GMT 2013


CVSROOT:	/cvs/src
Module name:	src
Changes by:	palves@sourceware.org	2013-04-19 15:36:24

Modified files:
	gdb            : ChangeLog cp-valprint.c 

Log message:
	-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.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15455&r2=1.15456
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-valprint.c.diff?cvsroot=src&r1=1.89&r2=1.90



More information about the Gdb-cvs mailing list