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

George Joseph (JIRA) noreply at issues.asterisk.org
Mon Apr 6 08:18:25 CDT 2020


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

George Joseph updated ASTERISK-28803:
-------------------------------------

    Status: Open  (was: Triage)

> [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
>            Assignee: 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