mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
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.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2020-09-17 Pedro Alves <pedro@palves.net>
|
||||||
|
|
||||||
|
* gdb.base/sizeof.c (fill): Add cast.
|
||||||
|
|
||||||
2020-09-17 Pedro Alves <pedro@palves.net>
|
2020-09-17 Pedro Alves <pedro@palves.net>
|
||||||
|
|
||||||
* gdb.base/share-env-with-gdbserver.c (main): Add cast.
|
* gdb.base/share-env-with-gdbserver.c (main): Add cast.
|
||||||
|
@ -51,7 +51,7 @@ struct {
|
|||||||
static void
|
static void
|
||||||
fill (void *buf, long sizeof_buf)
|
fill (void *buf, long sizeof_buf)
|
||||||
{
|
{
|
||||||
char *p = buf;
|
char *p = (char *) buf;
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < sizeof_buf; i++)
|
for (i = 0; i < sizeof_buf; i++)
|
||||||
p[i] = "The quick brown dingo jumped over the layzy dog."[i];
|
p[i] = "The quick brown dingo jumped over the layzy dog."[i];
|
||||||
|
Reference in New Issue
Block a user