gdb.base/sizeof.exp C++ify
authorPedro Alves <pedro@palves.net>
Thu, 17 Sep 2020 22:33:43 +0000 (23:33 +0100)
committerPedro Alves <pedro@palves.net>
Thu, 17 Sep 2020 23:08:17 +0000 (00:08 +0100)
commitef0cdbc16f4909d667497691f456d15c7dc7cdba
tree03633843e80d9c3e80e02c0560109b0f0ac46406
parent3a5eeb8b63c3d408b0f9257c61f11c36e49fd265
gdb.base/sizeof.exp C++ify

Fixes:

  src/gdb/testsuite/gdb.base/sizeof.c:54:9: error: cannot initialize a variable of type 'char *' with an lvalue of type 'void *'

... when the testcase is built with a C++ compiler.

gdb/testsuite/ChangeLog:

* gdb.base/sizeof.c (fill): Add cast.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/sizeof.c