[asterisk-bugs] [JIRA] (ASTERISK-24358) chan_vpb.cc does not compile with -Werror using gcc 4.9

Joshua Colp (JIRA) noreply at issues.asterisk.org
Mon Dec 18 09:36:07 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp closed ASTERISK-24358.
----------------------------------

    Resolution: Fixed

The chan_vpb module is currently building fine under latest versions of things.

> chan_vpb.cc does not compile with -Werror using gcc 4.9
> -------------------------------------------------------
>
>                 Key: ASTERISK-24358
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24358
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_vpb
>    Affects Versions: 11.13.0
>            Reporter: Jeremy Lainé
>
> Building asterisk in developer mode with gcc 4.9 fails with the following error:
> {noformat}
> chan_vpb.cc: In function 'int unload_module()':
> chan_vpb.cc:2635:29: error: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
>    memset(bridges, 0, sizeof bridges);
>                              ^
> cc1plus: all warnings being treated as errors
> {noformat}



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



More information about the asterisk-bugs mailing list