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

Friendly Automation (JIRA) noreply at issues.asterisk.org
Thu Dec 21 05:53:07 CST 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240952#comment-240952 ] 

Friendly Automation commented on ASTERISK-26563:
------------------------------------------------

Change 7673 merged by Jenkins2:
core: Fix unused variable error in handle_show_sysinfo.

[https://gerrit.asterisk.org/7673|https://gerrit.asterisk.org/7673]

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