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

Alexander Traud (JIRA) noreply at issues.asterisk.org
Thu Oct 28 04:46:49 CDT 2021


Alexander Traud created ASTERISK-29708:
------------------------------------------

             Summary: 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: 18.7.1, 16.21.1
            Reporter: Alexander Traud
         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