<p style="white-space: pre-wrap; word-wrap: break-word;">Jean,</p><p style="white-space: pre-wrap; word-wrap: break-word;">Not completely against the patch, working on the same problem currently, and I think there is a simpler fix, and that's to just revert the diff as introduced by:</p><p style="white-space: pre-wrap; word-wrap: break-word;">commit 3d1bf3c537bba0416f691f48165fdd0a32554e8a<br>Author: Kevin Harwell <kharwell@digium.com><br>Date:   Mon Jun 1 18:25:48 2020 -0500</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">    Compiler fixes for gcc 10</pre><p style="white-space: pre-wrap; word-wrap: break-word;"><br>Specifically this portion:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">```<br> #define AST_DEFINE_APP_ARGS_TYPE(type, arglist) \<br>        struct type { \<br>                unsigned int argc; \<br>-               char *argv[0]; \<br>-               arglist \<br>+               union { \<br>+                       char *argv[sizeof(struct {arglist}) / sizeof(char *)]; \<br>+                       struct {arglist}; \<br>+               }; \<br>        }<br> ```</pre><p style="white-space: pre-wrap; word-wrap: break-word;">And *only* that portion from the larger commit.</p><p style="white-space: pre-wrap; word-wrap: break-word;">That way we can avoid introducing a count argument in the C++ case such that semantics in C and C++ remains the same.</p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4; color: #000000;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15399">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15399">change 15399</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/+/15399"/><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: Ibb299334d527fcd2af2b023fe64925ecece77d6d </div>
<div style="display:none"> Gerrit-Change-Number: 15399 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jean Aunis - Prescom <jean.aunis@prescom.fr> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 10 Feb 2021 17:41:56 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>