This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/sim/common ChangeLog sim-trace.c
- From: vapier at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 10 Apr 2010 08:00:58 -0000
- Subject: src/sim/common ChangeLog sim-trace.c
CVSROOT: /cvs/src
Module name: src
Changes by: vapier@sourceware.org 2010-04-10 08:00:58
Modified files:
sim/common : ChangeLog sim-trace.c
Log message:
sim: constify save_data()
The local save_data() function takes a pointer to a buffer and only uses it as
the source to the memcpy() function. Since it is given const strings, GCC
likes to spit out warnings:
common/sim-trace.c: In function 'trace_prefix':
common/sim-trace.c:697: warning: passing argument 5 of 'save_data' discards
qualifiers from pointer target type
So I've committed this as obvious.
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.206&r2=1.207
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/sim-trace.c.diff?cvsroot=src&r1=1.10&r2=1.11