<p>George Joseph <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/6662">View Change</a></p><p>Patch set 1:</p><p>(1 comment)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/6662/1/include/asterisk/vector.h">File include/asterisk/vector.h:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6662/1/include/asterisk/vector.h@318">Patch Set #1, Line 318:</a> <code style="font-family:monospace,monospace">      typeof(elem) __elem = (elem); \</code></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">what's happening is that if "elem" is an array say "char[4]",<br> the expression becomes...<br>char __elem[4] = (elem);<br>which is an assignment of an array to an array which isn't valid in C.</pre><p style="white-space: pre-wrap; word-wrap: break-word;">You can do this however...<br>__auto_type __elem = (elem);<br>This automatically evaluates to...<br>char *__elem = (elem);</p><p style="white-space: pre-wrap; word-wrap: break-word;">Unfortunately, __auto_type may be a recent addition to gcc and clang so I'm testing with docker images to see how far back it goes.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/6662">change 6662</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/6662"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ib960d7f5576f9e1a3c478ecb48995582a574e06d </div>
<div style="display:none"> Gerrit-Change-Number: 6662 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 06 Oct 2017 12:27:19 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>