<p>Richard Mudgett <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/6089">View Change</a></p><p>Patch set 6:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p style="white-space: pre-wrap; word-wrap: break-word;">Just so you see the comment.</p><p>(1 comment)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/6089/6/res/res_rtp_asterisk.c">File res/res_rtp_asterisk.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6089/6/res/res_rtp_asterisk.c@702">Patch Set #6, Line 702:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;"> case PJ_ICE_SESS_ROLE_UNKNOWN:<br> /* Don't change anything */<br> return;<br> }<br><br> /* If we aren't explicitly handling something, it's a bug */<br> ast_assert(0);<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">The ast_assert should be in a default case.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Since the pj_role is a third-party (pjproject) defined enum, we'll get a compile error now if they add a new enum value. However, if we fix that error by adding the new enum value then someone using an older version of the third-party library will get a compile error.</p><p style="white-space: pre-wrap; word-wrap: break-word;">As an alternate, we could leave this as is and if a new enum value gets added we add the new enum value case in conditional code. Conditional code can get messy if it happens too often.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/6089">change 6089</a>. To unsubscribe, 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/6089"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ia578ede1a55b21014581793992a429441903278b </div>
<div style="display:none"> Gerrit-Change-Number: 6089 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 26 Jul 2017 20:35:45 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>