mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
stasis: Avoid 'dispatched' as unused variable in normal mode.
ASTERISK-29710 Change-Id: Ia849f1172e4e694c5d5d7f0cad449f936ee12216
This commit is contained in:
committed by
Friendly Automation
parent
ce2d743d59
commit
14709ae12d
@@ -1433,8 +1433,8 @@ static void publish_msg(struct stasis_topic *topic,
|
|||||||
struct stasis_message *message, struct stasis_subscription *sync_sub)
|
struct stasis_message *message, struct stasis_subscription *sync_sub)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
unsigned int dispatched = 0;
|
|
||||||
#ifdef AST_DEVMODE
|
#ifdef AST_DEVMODE
|
||||||
|
unsigned int dispatched = 0;
|
||||||
int message_type_id = stasis_message_type_id(stasis_message_type(message));
|
int message_type_id = stasis_message_type_id(stasis_message_type(message));
|
||||||
struct stasis_message_type_statistics *statistics;
|
struct stasis_message_type_statistics *statistics;
|
||||||
struct timeval start;
|
struct timeval start;
|
||||||
@@ -1484,8 +1484,10 @@ static void publish_msg(struct stasis_topic *topic,
|
|||||||
struct stasis_subscription *sub = AST_VECTOR_GET(&topic->subscribers, i);
|
struct stasis_subscription *sub = AST_VECTOR_GET(&topic->subscribers, i);
|
||||||
|
|
||||||
ast_assert(sub != NULL);
|
ast_assert(sub != NULL);
|
||||||
|
#ifdef AST_DEVMODE
|
||||||
dispatched += dispatch_message(sub, message, (sub == sync_sub));
|
dispatched +=
|
||||||
|
#endif
|
||||||
|
dispatch_message(sub, message, (sub == sync_sub));
|
||||||
}
|
}
|
||||||
ao2_unlock(topic);
|
ao2_unlock(topic);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user