TT#111150 remove stray compiler warning

Some invocations of ssrc_ctx_put() are deliberately passed a memory
reference, which produces an undesired compiler warning. Use an
intermediate variable to suppress it.

Change-Id: I7a5000df4d66ffadd374475907460919763c95b0
pull/1262/head
Richard Fuchs 5 years ago
parent c09b379f41
commit 983a703ba7

@ -215,14 +215,15 @@ void payload_tracker_add(struct payload_tracker *, int);
#define ssrc_ctx_put(c) \
do { \
if ((c) && *(c)) { \
obj_put(&(*c)->parent->h); \
*(c) = NULL; \
struct ssrc_ctx **__cc = (c); \
if ((__cc) && *(__cc)) { \
obj_put(&(*__cc)->parent->h); \
*(__cc) = NULL; \
} \
} while (0)
#define ssrc_ctx_hold(c) \
do { \
if ((c)) \
if (c) \
obj_hold(&(c)->parent->h); \
} while (0)

Loading…
Cancel
Save