This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils 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]

[binutils-gdb] Fix snafu - add missing const declaration to 'string' local variable in s_stab_generic.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b37283a66b246609c74d75cb6757f5ecc2bfb8fa

commit b37283a66b246609c74d75cb6757f5ecc2bfb8fa
Author: Nick Clifton <nickc@redhat.com>
Date:   Fri Feb 19 16:15:48 2016 +0000

    Fix snafu - add missing const declaration to 'string' local variable in s_stab_generic.

Diff:
---
 gas/stabs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gas/stabs.c b/gas/stabs.c
index 6b739c7..3b56a48 100644
--- a/gas/stabs.c
+++ b/gas/stabs.c
@@ -181,7 +181,8 @@ s_stab_generic (int          what,
 	       	const char * stabstr_secname)
 {
   long longint;
-  char *string, *saved_string_obstack_end;
+  const char *string;
+  char *saved_string_obstack_end;
   int type;
   int other;
   int desc;


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