<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16639">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stasis: Avoid 'dispatched' as unused variable in normal mode.<br><br>ASTERISK-29710<br><br>Change-Id: Ia849f1172e4e694c5d5d7f0cad449f936ee12216<br>---<br>M main/stasis.c<br>1 file changed, 5 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/39/16639/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/stasis.c b/main/stasis.c</span><br><span>index bc11b7f..b825f39 100644</span><br><span>--- a/main/stasis.c</span><br><span>+++ b/main/stasis.c</span><br><span>@@ -1433,8 +1433,8 @@</span><br><span>         struct stasis_message *message, struct stasis_subscription *sync_sub)</span><br><span> {</span><br><span>   size_t i;</span><br><span style="color: hsl(0, 100%, 40%);">-       unsigned int dispatched = 0;</span><br><span> #ifdef AST_DEVMODE</span><br><span style="color: hsl(120, 100%, 40%);">+    unsigned int dispatched = 0;</span><br><span>         int message_type_id = stasis_message_type_id(stasis_message_type(message));</span><br><span>  struct stasis_message_type_statistics *statistics;</span><br><span>   struct timeval start;</span><br><span>@@ -1484,8 +1484,10 @@</span><br><span>               struct stasis_subscription *sub = AST_VECTOR_GET(&topic->subscribers, i);</span><br><span> </span><br><span>                 ast_assert(sub != NULL);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-                dispatched += dispatch_message(sub, message, (sub == sync_sub));</span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef AST_DEVMODE</span><br><span style="color: hsl(120, 100%, 40%);">+          dispatched +=</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+                 dispatch_message(sub, message, (sub == sync_sub));</span><br><span>   }</span><br><span>    ao2_unlock(topic);</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16639">change 16639</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/16639"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia849f1172e4e694c5d5d7f0cad449f936ee12216 </div>
<div style="display:none"> Gerrit-Change-Number: 16639 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>