This adjusts gdb.mi/var-cmd.c to make it buildable as a C++ program.
gdb/testsuite/ChangeLog:
* gdb.mi/var-cmd.c (do_anonymous_type_tests): Add cast.
+2020-09-17 Pedro Alves <pedro@palves.net>
+
+ * gdb.mi/var-cmd.c (do_anonymous_type_tests): Add cast.
+
2020-09-17 Pedro Alves <pedro@palves.net>
* gdb.base/exprs.c: Replace 'this' with 'self' throughout.
};
} v = {1, {2}, {3}};
- anon = malloc (sizeof (struct anonymous));
+ anon = (struct anonymous *) malloc (sizeof (struct anonymous));
anon->a = 1;
anon->b = 2;
anon->c = (char *) 3;