aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-27 09:27:40 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2015-10-27 09:27:40 -0400
commita480de357b17b1b2057b8375284079ccafae39db (patch)
tree5652fa00536a614e387874bae64200f3cff15ce9 /gdb/ada-lang.h
parenta504d23a83d115b1b29a5b1fbfaeb2b09bc0e22c (diff)
downloadgdb-a480de357b17b1b2057b8375284079ccafae39db.zip
gdb-a480de357b17b1b2057b8375284079ccafae39db.tar.gz
gdb-a480de357b17b1b2057b8375284079ccafae39db.tar.bz2
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.
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r--gdb/ada-lang.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index 62896f1..7c527cc 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -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);