[asterisk-bugs] [JIRA] (ASTERISK-29616) res_rtp_asterisk: sqrt(.) requires the header math.h.

Alexander Traud (JIRA) noreply at issues.asterisk.org
Wed Aug 25 09:21:33 CDT 2021


Alexander Traud created ASTERISK-29616:
------------------------------------------

             Summary: res_rtp_asterisk: sqrt(.) requires the header math.h.
                 Key: ASTERISK-29616
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29616
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_rtp_asterisk
    Affects Versions: 18.6.0, 16.20.0
            Reporter: Alexander Traud


{code}res_rtp_asterisk.c: In function ‘calc_mean_and_standard_deviation’:
res_rtp_asterisk.c:3357:13: warning: implicit declaration of function ‘sqrt’ [-Wimplicit-function-declaration]
  *std_dev = sqrt((last_sum_of_squares + (delta1 * delta2)) / *count);
             ^~~~
res_rtp_asterisk.c:3357:13: warning: incompatible implicit declaration of built-in function ‘sqrt’
res_rtp_asterisk.c:3357:13: note: include ‘<math.h>’ or provide a declaration of ‘sqrt’{code}Found this, while making Asterisk 18 with several jobs (3). This issue is caused by the fix for ASTERISK-29364 ([Gerrit-15689|https://gerrit.asterisk.org/15689], commit [0fc906a|https://github.com/asterisk/asterisk/commit/0fc906a]. Therefore, it was introduced with Asterisk [16.18|https://github.com/asterisk/asterisk/commit/bd42639] and [18.4|https://github.com/asterisk/asterisk/commit/17c86dc].



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



More information about the asterisk-bugs mailing list