[asterisk-bugs] [JIRA] (ASTERISK-28808) [patch] test_stasis: Avoid always true warning with clang.
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Wed Sep 9 11:10:47 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-28808:
-------------------------------------
Target Release Version/s: 18.0.0
> [patch] test_stasis: Avoid always true warning with clang.
> ----------------------------------------------------------
>
> Key: ASTERISK-28808
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28808
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Tests/General
> Affects Versions: 13.32.0, 16.9.0, 17.3.0
> Environment: clang
> Reporter: Alexander Traud
> Assignee: Alexander Traud
> Severity: Trivial
> Labels: patch
> Target Release: 13.33.0, 16.10.0, 17.4.0, 18.0.0
>
> Attachments: clang_test_stasis.patch
>
>
> 60 months ago, [review 4541|https://reviewboard.asterisk.org/r/4541/] (ASTERISK-24917) resolved warnings raised by the compiler clang. However, because alternative/conflicting code paths exist, some warnings got missed. Here in this case, the developer mode was activated via {{./configure --enable-dev-mode}} and the test framework was enabled via {{make menuselect}}.
> Then, clang reports:{code}test_stasis.c:2205:18: error: address of array 'data->description' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
> data && data->description ? data->description : "no data");
> ~~ ~~~~~~^~~~~~~~~~~{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list