[asterisk-dev] [Code Review] 4530: clang compiler warning: -Wgnu-variable-sized-type-not-at-end
rmudgett
reviewboard at asterisk.org
Fri Mar 27 11:04:05 CDT 2015
> On March 26, 2015, 8:11 p.m., Matt Jordan wrote:
> > /branches/13/main/stdtime/localtime.c, lines 357-361
> > <https://reviewboard.asterisk.org/r/4530/diff/1/?file=72936#file72936line357>
> >
> > Just curious, what was the compiler warning on this one?
>
> Diederik de Groot wrote:
> There can only be one variable size struct element and it has to be at the last position. Having them anywhere in the struct is a gcc extension.
This is not a valid fix!! The buf.name field is supposed to be the extra space that the buf.iev.name field represents.
- rmudgett
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4530/#review14875
-----------------------------------------------------------
On March 26, 2015, 1:12 p.m., Diederik de Groot wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/4530/
> -----------------------------------------------------------
>
> (Updated March 26, 2015, 1:12 p.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Bugs: ASTERISK-24917
> https://issues.asterisk.org/jira/browse/ASTERISK-24917
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> clang's static analyzer will throw quite a number warnings / errors during compilation, some of which can be very helpfull in finding corner-case bugs\nclang compiler warning:-Wgnu-variable-sized-type-not-at-end
>
>
> Diffs
> -----
>
> /branches/13/main/stdtime/localtime.c 433444
>
> Diff: https://reviewboard.asterisk.org/r/4530/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Diederik de Groot
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20150327/31095098/attachment.html>
More information about the asterisk-dev
mailing list