[asterisk-bugs] [JIRA] (ASTERISK-28803) [patch] chan_unistim: Avoid tautological warnings with clang.
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Wed Apr 8 08:35:25 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250176#comment-250176 ]
Friendly Automation commented on ASTERISK-28803:
------------------------------------------------
Change 14084 merged by Joshua Colp:
chan_unistim: Avoid tautological warnings with clang.
[https://gerrit.asterisk.org/c/asterisk/+/14084|https://gerrit.asterisk.org/c/asterisk/+/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
> 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