-Wpointer-sign: xcoffread.c.
authorPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 15:33:58 +0000 (15:33 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 15:33:58 +0000 (15:33 +0000)
commit745eb4fdb2c0c7e68cdb9672412ad8ceca7347f2
tree1ad8602c3dfe0bde5f3bc4625818688cf116ae47
parentdb5be46fdcf41109a017cbdaeeac5acc9a1f78f3
-Wpointer-sign: xcoffread.c.

../../src/gdb/xcoffread.c: In function ‘xcoff_initial_scan’:
../../src/gdb/xcoffread.c:2982:17: error: pointer targets in assignment differ in signedness [-Werror=pointer-sign]

'debugsec' is a 'bfd_byte *', holding the result of a
bfd_get_full_section_contents.  'info->debugsec' holds the same
contents throughout the whole xcoff read, and everywhere it's used to
read symbol names.  Simply adding a cast feels appropriate.

gdb/
2013-04-19  Pedro Alves  <palves@redhat.com>

* xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
gdb/ChangeLog
gdb/xcoffread.c