<p>Joshua Colp would like Jaco Kroon to <strong>review</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15609">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app.h: Fix -Werror=zero-length-bounds compile errors in dev mode.<br><br>Change-Id: I5c104dc1f8417ccd3d01faf86e84ccbf89bc3b31<br>Signed-off-by: Jaco Kroon <jaco@uls.co.za><br>---<br>M include/asterisk/app.h<br>1 file changed, 6 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/09/15609/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/asterisk/app.h b/include/asterisk/app.h</span><br><span>index 6323287..7690364 100644</span><br><span>--- a/include/asterisk/app.h</span><br><span>+++ b/include/asterisk/app.h</span><br><span>@@ -1215,7 +1215,7 @@</span><br><span> ast_app_separate_args() will perform that function before parsing</span><br><span> the arguments.</span><br><span> */</span><br><span style="color: hsl(0, 100%, 40%);">-#define AST_DECLARE_APP_ARGS(name, arglist) AST_DEFINE_APP_ARGS_TYPE(, arglist) name = { 0, }</span><br><span style="color: hsl(120, 100%, 40%);">+#define AST_DECLARE_APP_ARGS(name, arglist) AST_DEFINE_APP_ARGS_TYPE(argtype_##name, arglist) name = { 0, }</span><br><span> </span><br><span> /*!</span><br><span> \brief Define a structure type to hold an application's arguments.</span><br><span>@@ -1233,10 +1233,13 @@</span><br><span> */</span><br><span> </span><br><span> #define AST_DEFINE_APP_ARGS_TYPE(type, arglist) \</span><br><span style="color: hsl(120, 100%, 40%);">+ struct __subtype_##type { arglist }; \</span><br><span> struct type { \</span><br><span> unsigned int argc; \</span><br><span style="color: hsl(0, 100%, 40%);">- char *argv[0]; \</span><br><span style="color: hsl(0, 100%, 40%);">- arglist; \</span><br><span style="color: hsl(120, 100%, 40%);">+ union { \</span><br><span style="color: hsl(120, 100%, 40%);">+ char *argv[sizeof(struct __subtype_##type) / sizeof(char*)]; \</span><br><span style="color: hsl(120, 100%, 40%);">+ struct { arglist }; \</span><br><span style="color: hsl(120, 100%, 40%);">+ }; \</span><br><span> }</span><br><span> </span><br><span> /*!</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15609">change 15609</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/+/15609"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: I5c104dc1f8417ccd3d01faf86e84ccbf89bc3b31 </div>
<div style="display:none"> Gerrit-Change-Number: 15609 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>