This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

src/sim/common ChangeLog sim-load.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	vapier@sourceware.org	2011-01-05 17:13:36

Modified files:
	sim/common     : ChangeLog sim-load.c 

Log message:
	sim: tweak load buffer type to avoid signed warnings
	
	The sim_load_file func creates a buffer with arbitrary data in it (reads
	it via the bfd).  It then passes it on to a sim_write_fn which expects a
	unsigned char buffer.  Since sim_load_file itself doesn't care about the
	contents, tweak the type to avoid signed mismatch warnings from gcc:
	
	common/sim-load.c: In function â??sim_load_fileâ??:
	common/sim-load.c:143: warning: pointer targets in passing argument 3 of â??do_writeâ?? differ in signedness
	common/sim-load.c:143: note: expected â??const unsigned char *â?? but argument is of type â??char *â??
	
	Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/ChangeLog.diff?cvsroot=src&r1=1.229&r2=1.230
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/sim-load.c.diff?cvsroot=src&r1=1.15&r2=1.16


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]