[asterisk-bugs] [JIRA] (ASTERISK-28628) Debian 10.2: Warning when app_voicemail is compiling

Friendly Automation (JIRA) noreply at issues.asterisk.org
Tue Dec 17 11:59:32 CST 2019


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249082#comment-249082 ] 

Friendly Automation commented on ASTERISK-28628:
------------------------------------------------

Change 13420 merged by Friendly Automation:
app_voicemail: warning when is compiling

[https://gerrit.asterisk.org/c/asterisk/+/13420|https://gerrit.asterisk.org/c/asterisk/+/13420]

> Debian 10.2: Warning when app_voicemail is compiling
> ----------------------------------------------------
>
>                 Key: ASTERISK-28628
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28628
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_voicemail
>    Affects Versions: 13.29.2
>         Environment: OS: Debian 10.2
> GCC: gcc (Debian 8.3.0-6) 8.3.0
> kernel: 4.19.0-6-amd64 (4.19.67-2+deb10u2 (2019-11-11) x86_64)
>            Reporter: Stanislav Abramenkov
>            Assignee: Stanislav Abramenkov
>            Severity: Minor
>              Labels: patch
>         Attachments: app_voicemail_warning_info.png, compilling_after_patching.png, git_commit.png, possible_solution.patch
>
>
> Hello,
> When I tried to compile the asterisk from source code, I got a warning with app_voicemail:
>    [CC] app_voicemail.c -> app_voicemail.o
> app_voicemail.c: In function ‘manager_list_voicemail_users’:
> app_voicemail.c:13583:3: warning: ‘old’ may be used uninitialized in this function [-Wmaybe-uninitialized]
>    astman_append(s,
>    ^~~~~~~~~~~~~~~~
>     "Event: VoicemailUserEntry\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     "%s"
>     ~~~~
>     "VMContext: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~
>     "VoiceMailbox: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~
>     "Fullname: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~
>     "Email: %s\r\n"
>     ~~~~~~~~~~~~~~~
>     "Pager: %s\r\n"
>     ~~~~~~~~~~~~~~~
>     "ServerEmail: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~
>     "FromString: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~
>     "MailCommand: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~
>     "Language: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~
>     "TimeZone: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~
>     "Callback: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~
>     "Dialout: %s\r\n"
>     ~~~~~~~~~~~~~~~~~
>     "UniqueID: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~
>     "ExitContext: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~
>     "SayDurationMinimum: %d\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     "SayEnvelope: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~
>     "SayCID: %s\r\n"
>     ~~~~~~~~~~~~~~~~
>     "AttachMessage: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~~
>     "AttachmentFormat: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~
>     "DeleteMessage: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~~
>     "VolumeGain: %.2f\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~
>     "CanReview: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~
>     "CallOperator: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~
>     "MaxMessageCount: %d\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~~~~
>     "MaxMessageLength: %d\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~
>     "NewMessageCount: %d\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~~~~
>     "OldMessageCount: %d\r\n"
>     ~~~~~~~~~~~~~~~~~~~~~~~~~
>  #ifdef IMAP_STORAGE
>  ~~~~~~~~~~~~~~~~~~~
>     "IMAPUser: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~
>     "IMAPServer: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~~
>     "IMAPPort: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~
>     "IMAPFlags: %s\r\n"
>     ~~~~~~~~~~~~~~~~~~~
>  #endif
>  ~~~~~~
>     "\r\n",
>     ~~~~~~~
>     actionid,
>     ~~~~~~~~~
>     vmu->context,
>     ~~~~~~~~~~~~~
>     vmu->mailbox,
>     ~~~~~~~~~~~~~
>     vmu->fullname,
>     ~~~~~~~~~~~~~~
>     vmu->email,
>     ~~~~~~~~~~~
>     vmu->pager,
>     ~~~~~~~~~~~
>     ast_strlen_zero(vmu->serveremail) ? serveremail : vmu->serveremail,
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     ast_strlen_zero(vmu->fromstring) ? fromstring : vmu->fromstring,
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     mailcmd,
>     ~~~~~~~~
>     vmu->language,
>     ~~~~~~~~~~~~~~
>     vmu->zonetag,
>     ~~~~~~~~~~~~~
>     vmu->callback,
>     ~~~~~~~~~~~~~~
>     vmu->dialout,
>     ~~~~~~~~~~~~~
>     vmu->uniqueid,
>     ~~~~~~~~~~~~~~
>     vmu->exit,
>     ~~~~~~~~~~
>     vmu->saydurationm,
>     ~~~~~~~~~~~~~~~~~~
>     ast_test_flag(vmu, VM_ENVELOPE) ? "Yes" : "No",
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     ast_test_flag(vmu, VM_SAYCID) ? "Yes" : "No",
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     ast_test_flag(vmu, VM_ATTACH) ? "Yes" : "No",
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     vmu->attachfmt,
>     ~~~~~~~~~~~~~~~
>     ast_test_flag(vmu, VM_DELETE) ? "Yes" : "No",
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     vmu->volgain,
>     ~~~~~~~~~~~~~
>     ast_test_flag(vmu, VM_REVIEW) ? "Yes" : "No",
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     ast_test_flag(vmu, VM_OPERATOR) ? "Yes" : "No",
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     vmu->maxmsg,
>     ~~~~~~~~~~~~
>     vmu->maxsecs,
>     ~~~~~~~~~~~~~
>     new,
>     ~~~~
>     old
>     ~~~
>  #ifdef IMAP_STORAGE
>  ~~~~~~~~~~~~~~~~~~~
>     ,
>     ~
>     vmu->imapuser,
>     ~~~~~~~~~~~~~~
>     vmu->imapserver,
>     ~~~~~~~~~~~~~~~~
>     vmu->imapport,
>     ~~~~~~~~~~~~~~
>     vmu->imapflags
>     ~~~~~~~~~~~~~~
>  #endif
>  ~~~~~~
>     );
>     ~
> app_voicemail.c:13583:3: warning: ‘new’ may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [LD] app_voicemail.o -> app_voicemail.so
> best regards,
> Stanislav



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



More information about the asterisk-bugs mailing list