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-options.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	vapier@sourceware.org	2010-04-12 16:00:47

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

Log message:
	sim: constify dup_arg_p
	
	The dup_arg_p function is only given const strings, and it maintains a
	local table of those const strings.  So constify the whole thing to fix
	the GCC warnings:
	
	common/sim-options.c: In function 'sim_parse_args':
	common/sim-options.c:559: warning: passing argument 1 of 'dup_arg_p'
	discards qualifiers from pointer target type
	common/sim-options.c: In function 'print_help':
	common/sim-options.c:675: warning: passing argument 1 of 'dup_arg_p'
	discards qualifiers from pointer target type
	
	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.210&r2=1.211
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/sim-options.c.diff?cvsroot=src&r1=1.17&r2=1.18


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