From 0d18d7205b3ab45b0e44465111e178e83c8555da Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 12 Apr 2010 16:04:43 +0000 Subject: gdb: constify remote files_info The sim and m32r remote targets declare a local "file" variable and only assign const strings to it before passing it to a printf() func. So add const markings to avoid gcc warnings like: gdb/remote-sim.c: In function 'gdbsim_files_info': gdb/remote-sim.c:789: warning: initialization discards qualifiers from pointer target type Signed-off-by: Mike Frysinger --- gdb/remote-m32r-sdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/remote-m32r-sdi.c') diff --git a/gdb/remote-m32r-sdi.c b/gdb/remote-m32r-sdi.c index be6a564..a74075b 100644 --- a/gdb/remote-m32r-sdi.c +++ b/gdb/remote-m32r-sdi.c @@ -1020,7 +1020,7 @@ m32r_prepare_to_store (struct regcache *regcache) static void m32r_files_info (struct target_ops *target) { - char *file = "nothing"; + const char *file = "nothing"; if (exec_bfd) { -- cgit v1.1