[asterisk-bugs] [JIRA] (ASTERISK-26563) core: macOS devmode build fails: variable 'freeswap' set but not used

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Mon Apr 1 13:21:56 CDT 2019


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

Kevin Harwell updated ASTERISK-26563:
-------------------------------------

    Target Release Version/s: 16.3.0

> core: macOS devmode build fails: variable 'freeswap' set but not used
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-26563
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26563
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>            Reporter: David M. Lee
>            Assignee: Corey Farrell
>            Severity: Minor
>      Target Release: 13.20.0, 15.3.0, 16.0.0, 16.3.0
>
>
> A [recent fix|https://github.com/asterisk/asterisk/commit/01884a7af637bd92511b2f85378afea1e42f76bf] to support the musl c-library creates a warning when building on macOS (or any other platform the does not {{HAVE_SYSINFO}}, nor {{HAVE_SWAPCTL}}, but does {{HAVE_SYSCTL}}).
> {noformat}
> asterisk.c: In function 'handle_show_sysinfo':
> asterisk.c:790:11: error: variable 'freeswap' set but not used [-Werror=unused-but-set-variable]
>   uint64_t freeswap = 0;
>            ^~~~~~~~
> {noformat}



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



More information about the asterisk-bugs mailing list