[asterisk-bugs] [JIRA] (ASTERISK-28628) Debian 10.2: Warning when app_voicemail is compiling
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Thu Jan 23 10:34:25 CST 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-28628:
-------------------------------------
Target Release Version/s: 13.31.0
> 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
> Severity: Minor
> Labels: patch
> Target Release: 13.31.0
>
> 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