<p><a href="https://gerrit.asterisk.org/c/asterisk/+/19418">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">Patchset:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/19418?tab=comments">Patch Set #2:</a> </p><p style="white-space: pre-wrap; word-wrap: break-word;">Okay, so this is odd:</p><p style="white-space: pre-wrap; word-wrap: break-word;">00:02:31.294 test_stasis.c: In function 'dump_consumer':<br>00:02:31.294 test_stasis.c:2198:2: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'size_t' [-Werror=format=]<br>00:02:31.294 ast_test_status_update(test, "Messages received: %u Final? %s\n", cts->consumer->messages_rxed_len,<br>00:02:31.294 ^<br>00:02:31.294 cc1: all warnings being treated as errors</p><p style="white-space: pre-wrap; word-wrap: break-word;">But on my machine:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;"> [CCi] test_stasis.i -> test_stasis.o<br>test_stasis.c: In function ‘dump_consumer’:<br>test_stasis.c:2198:12: error: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]<br> ast_test_status_update(test, "Messages received: %ld Final? %s\n", cts->consumer->messages_rxed_len,<br> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>cc1: all warnings being treated as errors<br>make[1]: *** [/usr/src/asterisk-20.0.0/Makefile.rules:150: test_stasis.o] Error 1</pre><p style="white-space: pre-wrap; word-wrap: break-word;">I guess size_t is a different type on each machine so maybe it's not one size fits all here.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19418">change 19418</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/+/19418"/><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: I363e6057ef84d54b88af80d23ad6147eef9216ee </div>
<div style="display:none"> Gerrit-Change-Number: 19418 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: N A <asterisk@phreaknet.org> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Comment-Date: Sun, 23 Oct 2022 15:25:47 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>