<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 26, 2022 at 8:09 PM <<a href="mailto:asterisk@phreaknet.org">asterisk@phreaknet.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 9/26/2022 8:00 PM, Jerry Geis wrote:<br>
> I am getting a compile error:<br>
><br>
> gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes<br>
> -Werror=zero-length-bounds -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c<br>
> -o q921.o q921.c<br>
> q921.c: In function ‘q921_dump’:<br>
> q921.c:1333:85: error: array subscript 0 is outside the bounds of an<br>
> interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’}<br>
> [-Werror=zero-length-bounds]<br>
> 1333 | if ((h->u.ft == 3) && (h->u.m3 == 0) && (h->u.m2 ==<br>
> 0) && (h->u.data[0] == 0x0f)) {<br>
> |<br>
> ~~~~~~~~~^~~<br>
><br>
> EVEN though I added the "-Werror=zero-length-bounds" to the makefile as you<br>
> can see.<br>
> How do I get libpri-1.6.0 to compile on Ubuntu 22.04 LTS ?<br>
Just informationally, there is an open issue for this[1], but it hasn't <br>
been worked on.<br>
I am not sure if changing the [0] to [] will do the trick as I haven't <br>
been able to look at this yet, but you could try that.<br>
<br>
[1] <a href="https://issues.asterisk.org/jira/browse/PRI-189" rel="noreferrer" target="_blank">https://issues.asterisk.org/jira/browse/PRI-189</a></blockquote><div><br></div><div>Problem is it references [0], [1], [2], [3], and [4]. Not just [0], so I don't think so.</div><div>Thank you.</div><div><br></div><div>jerry </div></div></div>