ada-lang.h: Add cast in GROW_VECT

The assignment requires a cast in C++.  We only use this macro for
vectors of chars, so adding (char *) diretly will do for now.

gdb/ChangeLog:

	* ada-lang.h (GROW_VECT): Add cast.
This commit is contained in:
Simon Marchi 2015-10-27 09:27:40 -04:00
parent a504d23a83
commit a480de357b
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
* ada-lang.h (GROW_VECT): Add cast.
2015-10-26 Doug Evans <xdje42@gmail.com>
* symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.

View File

@ -147,7 +147,7 @@ struct ada_task_info
least M objects, updating V and S as necessary. */
#define GROW_VECT(v, s, m) \
if ((s) < (m)) (v) = grow_vect (v, &(s), m, sizeof *(v));
if ((s) < (m)) (v) = (char *) grow_vect (v, &(s), m, sizeof *(v));
extern void *grow_vect (void *, size_t *, size_t, int);