[obv] const qualifier: Re: [vms/committed]: More const in vms-misc.c and vms-alpha.c
Jan Kratochvil
jan.kratochvil@redhat.com
Fri Jun 11 21:13:00 GMT 2010
On Fri, 11 Jun 2010 17:14:43 +0200, Tristan Gingold wrote:
> while reading the code, I have found a few place to put the 'const' keyword.
>
> Committed.
gcc-4.4.4-2.fc13.x86_64
vms-alpha.c:3327: error: assignment discards qualifiers from pointer target type
Checked-in as I found no possible problems with it.
Thanks,
Jan
http://sourceware.org/ml/binutils-cvs/2010-06/msg00063.html
--- src/bfd/ChangeLog 2010/06/11 15:30:38 1.5049
+++ src/bfd/ChangeLog 2010/06/11 21:12:10 1.5050
@@ -1,3 +1,7 @@
+2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
+
2010-06-11 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
--- src/bfd/vms-alpha.c 2010/06/11 15:30:38 1.24
+++ src/bfd/vms-alpha.c 2010/06/11 21:12:11 1.25
@@ -3273,7 +3273,7 @@
unsigned int symnum;
int last_index = -1;
char dummy_name[10];
- char *sname;
+ const char *sname;
flagword new_flags, old_flags;
int abs_section_index = 0;
struct vms_rec_wr *recwr = &PRIV (recwr);
More information about the Binutils
mailing list