[asterisk-bugs] [JIRA] (ASTERISK-25592) chan_unistim: Clang Warning: variable sized type not at end of a struct

George Joseph (JIRA) noreply at issues.asterisk.org
Fri Feb 5 12:06:33 CST 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229291#comment-229291 ] 

George Joseph commented on ASTERISK-25592:
------------------------------------------

Any progress on this?
If the structure needs to stay as is we can add "#pragma GCC ingored" so it doesn't cause the error..
We can also make it an optional module so it only gets compiled if it's explicitly selected.


> chan_unistim: Clang Warning: variable sized type not at end of a struct
> -----------------------------------------------------------------------
>
>                 Key: ASTERISK-25592
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25592
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_unistim
>    Affects Versions: 13.6.0
>         Environment: Clang 3.3
>            Reporter: Alexander Traud
>            Assignee: Igor Goncharovsky
>            Severity: Minor
>         Attachments: unistim.clang.patch
>
>
> {{chan_unistim.c:1003:18: warning: field 'cm' with variable sized type 'struct cmsghdr' not at the end of a struct}}
> This happened on Ubuntu 14.04 LTS:
> {{sudo apt-get -y install build-essential libssl-dev libncurses-dev libnewt-dev libxml2-dev libsqlite3-dev uuid-dev libjansson-dev libblocksruntime-dev git iwyu}}
> {{cd /usr/src/}}
> {{git clone http://gerrit.asterisk.org/asterisk}}
> {{cd asterisk/}}
> {{CC=clang CXX=clang++ ./configure}}
> {{make}}
> The affected source code was introduced with [Mantis-8864|http://bugs.digium.com/view.php?id=8864]. I have no idea what this code does and how it works. Therefore, I cannot provide a patch.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list