regcache.c: fix -Wpointer-sign
authorPedro Alves <palves@redhat.com>
Thu, 7 Mar 2013 18:59:54 +0000 (18:59 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 7 Mar 2013 18:59:54 +0000 (18:59 +0000)
commita09b444817a6a61ec6323e7e6dcc4ccbf465826f
tree8b354e2343e59422a76b99fdd1a0731272b64a4e
parentc2d6a67509d73c74d24fe8d48a4607a50aef0d62
regcache.c: fix -Wpointer-sign

$ make WERROR_CFLAGS="-Wpointer-sign -Werror" regcache.o 2>&1 1>/dev/null
../../src/gdb/regcache.c: In function ‘regcache_xmalloc_1’:
../../src/gdb/regcache.c:228:2: error: pointer targets in assignment differ in signedness [-Werror=pointer-sign]
../../src/gdb/regcache.c:235:2: error: pointer targets in assignment differ in signedness [-Werror=pointer-sign]
cc1: all warnings being treated as errors

regcache->register_status is "signed char".

gdb/
2013-03-07  Pedro Alves  <palves@redhat.com>

* regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
for 'regcache->register_status'.
gdb/ChangeLog
gdb/regcache.c