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

Jeremy Lainé (JIRA) noreply at issues.asterisk.org
Fri Sep 26 05:55:28 CDT 2014


Jeremy Lainé created ASTERISK-24358:
---------------------------------------

             Summary: 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:

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




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



More information about the asterisk-bugs mailing list