[asterisk-bugs] [JIRA] (ASTERISK-27713) [patch] BuildSystem: Cast any intptr_t explicitly to its proposed type.
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Sat Mar 3 08:30:13 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-27713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242416#comment-242416 ]
Asterisk Team commented on ASTERISK-27713:
------------------------------------------
Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.
A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.
Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].
> [patch] BuildSystem: Cast any intptr_t explicitly to its proposed type.
> -----------------------------------------------------------------------
>
> Key: ASTERISK-27713
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27713
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/BuildSystem
> Affects Versions: 13.19.2
> Environment: NetBSD 7.1.1
> Reporter: Alexander Traud
> Severity: Minor
> Labels: patch
> Attachments: NetBSD_typecast_intptr_t.patch
>
>
> {code}stdtime/localtime.c: In function 'kqueue_daemon':
> stdtime/localtime.c: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
> sp = kev.udata;
> ^{code}In the struct {{kevent}}, the field {{udata}} is an opaque data ID, which can be used by the user (here: Asterisk) for identification of structs. Often this field is a {{void*}} which therefore does not need a cast to its proposed type. However, in NetBSD (tested 7.1.1), this data field is a {{intptr_t}} and therefore needs a cast. Asterisk stores a {{struct state*}} into {{udata}}. Therefore, such a typecast is required.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list