[asterisk-bugs] [JIRA] (ASTERISK-28803) [patch] chan_unistim: Avoid tautological warnings with clang.

Alexander Traud (JIRA) noreply at issues.asterisk.org
Fri Apr 3 12:28:25 CDT 2020


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

Alexander Traud updated ASTERISK-28803:
---------------------------------------

    Review Link: https://gerrit.asterisk.org/14084

> [patch] chan_unistim: Avoid tautological warnings with clang.
> -------------------------------------------------------------
>
>                 Key: ASTERISK-28803
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28803
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_unistim
>    Affects Versions: 13.32.0, 16.9.0, 17.3.0
>         Environment: clang 10
>            Reporter: Alexander Traud
>            Severity: Trivial
>              Labels: patch
>         Attachments: clang-10.patch
>
>
> Since yesterday, Ubuntu 20.04 LTS is available as beta version. There, the compiler clang 10 gives:{code}chan_unistim.c:1354:16: warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare]
>         if ((fav < 0) && (fav > 5)) {
>             ~~~~~~~~~~^~~~~~~~~~~~
> chan_unistim.c:1368:16: warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare]
>         if ((fav < 0) && (fav > 5)) {
>             ~~~~~~~~~~^~~~~~~~~~~~
> {code}



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



More information about the asterisk-bugs mailing list