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

David M. Lee (JIRA) noreply at issues.asterisk.org
Mon Nov 7 11:46:10 CST 2016


David M. Lee created ASTERISK-26563:
---------------------------------------

             Summary: 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
            Reporter: David M. Lee


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