[asterisk-bugs] [JIRA] (ASTERISK-29708) format_mp3: Clang 13 warns about the unused but set variable clip.

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Tue Mar 29 10:30:08 CDT 2022


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

Work on ASTERISK-29708 started by Joshua C. Colp.

> format_mp3: Clang 13 warns about the unused but set variable clip.
> ------------------------------------------------------------------
>
>                 Key: ASTERISK-29708
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29708
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Addons/format_mp3
>    Affects Versions: 16.21.1, 18.7.1
>            Reporter: Alexander Traud
>            Assignee: Joshua C. Colp
>              Labels: patch
>         Attachments: clang_mp3.patch
>
>
> After enabling the add-on {{format_mp3}} via {{make menuselect}}, after running the shell script to checkout the sources from the subversion server at Digium {{svn.digium.com}}, the compiler Clang 13 on Ubuntu 21.10 gives:
> {code}
> mp3/layer3.c:1881:18: warning: variable 'clip' set but not used [-Wunused-but-set-variable]
>   int gr, ch, ss,clip=0;
>                  ^
> {code}which turns into an error, if the developer mode is configured. Attached is the patch fixing this. However, I have no idea how the patch-contribution process works for software on {{svn.digium.com}}. Therefore, I cannot proceed from here.



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



More information about the asterisk-bugs mailing list