[asterisk-bugs] [JIRA] (ASTERISK-24358) chan_vpb.cc does not compile with -Werror using gcc 4.9
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Tue Sep 30 15:17:29 CDT 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-24358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rusty Newton updated ASTERISK-24358:
------------------------------------
Description:
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}
was:
Building asterisk in developer mode with gcc 4.9 fails with the following error:
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
> 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