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

Joshua Colp (JIRA) noreply at issues.asterisk.org
Tue Nov 8 05:24:10 CST 2016


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

Joshua Colp updated ASTERISK-26563:
-----------------------------------

    Component/s: Core/General

> 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
>            Severity: Minor
>
> 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