diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2015-10-01 11:29:08 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-10-01 11:29:08 -0400 |
commit | dd0a637a3d8f5ca7229131c085ef6b8e255d01f6 (patch) | |
tree | a4e62e4eee16a2622440cf64692fbf6336dba5f5 /gdb/common/vec.h | |
parent | 73524045d3a3b95bb0437386bba2a1583791ea42 (diff) | |
download | gdb-dd0a637a3d8f5ca7229131c085ef6b8e255d01f6.zip gdb-dd0a637a3d8f5ca7229131c085ef6b8e255d01f6.tar.gz gdb-dd0a637a3d8f5ca7229131c085ef6b8e255d01f6.tar.bz2 |
vec.h: Add casts for C++ compat
gdb/ChangeLog:
* common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
Diffstat (limited to 'gdb/common/vec.h')
-rw-r--r-- | gdb/common/vec.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/common/vec.h b/gdb/common/vec.h index 41e41b5..2564485 100644 --- a/gdb/common/vec.h +++ b/gdb/common/vec.h @@ -496,7 +496,7 @@ static inline void VEC_OP (T,free) \ static inline void VEC_OP (T,cleanup) \ (void *arg_) \ { \ - VEC(T) **vec_ = arg_; \ + VEC(T) **vec_ = (VEC(T) **) arg_; \ if (*vec_) \ vec_free_ (*vec_); \ *vec_ = NULL; \ @@ -743,7 +743,7 @@ static inline void VEC_OP (T,free) \ static inline void VEC_OP (T,cleanup) \ (void *arg_) \ { \ - VEC(T) **vec_ = arg_; \ + VEC(T) **vec_ = (VEC(T) **) arg_; \ if (*vec_) \ vec_free_ (*vec_); \ *vec_ = NULL; \ @@ -1053,7 +1053,7 @@ static inline void VEC_OP (T,free) \ static inline void VEC_OP (T,cleanup) \ (void *arg_) \ { \ - VEC(T) **vec_ = arg_; \ + VEC(T) **vec_ = (VEC(T) **) arg_; \ if (*vec_) \ vec_free_ (*vec_); \ *vec_ = NULL; \ |