vec.h: Add casts for C++ compat
gdb/ChangeLog: * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
This commit is contained in:
parent
73524045d3
commit
dd0a637a3d
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
|
||||
|
||||
2015-09-30 Doug Evans <dje@google.com>
|
||||
|
||||
* dwarf2read.c (setup_type_unit_groups): Add comment.
|
||||
|
|
|
@ -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; \
|
||||
|
|
Loading…
Reference in a new issue