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

Benjamin Keith Ford (JIRA) noreply at issues.asterisk.org
Thu Oct 28 06:45:49 CDT 2021


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

Benjamin Keith Ford updated ASTERISK-29708:
-------------------------------------------

    Status: Open  (was: Triage)

> format_mp3: Clang 12 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
>              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 12 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-submission procedure 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