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

Friendly Automation (JIRA) noreply at issues.asterisk.org
Wed Aug 25 18:06:33 CDT 2021


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

Friendly Automation commented on ASTERISK-29616:
------------------------------------------------

Change 16353 merged by Kevin Harwell:
res_rtp_asterisk: sqrt(.) requires the header math.h.

[https://gerrit.asterisk.org/c/asterisk/+/16353|https://gerrit.asterisk.org/c/asterisk/+/16353]

> 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: 16.20.0, 18.6.0
>            Reporter: Alexander Traud
>            Assignee: 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