]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Cast result of obstack_next_free
authorAlan Modra <amodra@gmail.com>
Tue, 4 Nov 2014 22:48:27 +0000 (09:18 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 5 Nov 2014 06:08:10 +0000 (16:38 +1030)
commit1ae1b8cc656639e18715829cbcd72916e86f3324
treeba943208819e8b8a1b954fee8881510a2e6899e7
parentee11262d06cc6af9d900b44cb4d9af29050b375f
Cast result of obstack_next_free

obstack_next_free is supposed to return a void*, rather than a char*
as it does currently.  Avoid warning on void* arithmetic when
obstack_next_free gets it proper return type.

* cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
to char* before doing pointer arithmetic.
gdb/ChangeLog
gdb/cp-valprint.c