From: Jan Kratochvil Date: Wed, 2 Jun 2010 20:03:42 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c315b68907cbee516094215812012ac65aa0ab0;p=binutils-gdb.git gdb/ * dwarf2read.c (typename_concat): Add const to the variable sep. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6c28c9ee33e..d3b9d537995 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-06-02 Jan Kratochvil + + * dwarf2read.c (typename_concat): Add const to the variable sep. + 2010-06-02 Tom Tromey * dwarf2loc.h (dwarf2_per_cu_data): Declare. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index b05b99a3c8f..60ed9e4beee 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -9236,7 +9236,7 @@ static char * typename_concat (struct obstack *obs, const char *prefix, const char *suffix, struct dwarf2_cu *cu) { - char *sep; + const char *sep; if (suffix == NULL || suffix[0] == '\0' || prefix == NULL || prefix[0] == '\0') sep = "";