[Home]

Summary:ASTERISK-27713: [patch] BuildSystem: Cast any intptr_t explicitly to its proposed type.
Reporter:Alexander Traud (traud)Labels:patch
Date Opened:2018-03-03 08:29:06.000-0600Date Closed:2018-03-06 11:25:21.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:13.19.2 Frequency of
Occurrence
Related
Issues:
Environment:NetBSD 7.1.1Attachments:( 0) NetBSD_typecast_intptr_t.patch
Description:{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.
Comments:By: Asterisk Team (asteriskteam) 2018-03-03 08:29:06.835-0600

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].

By: Friendly Automation (friendly-automation) 2018-03-06 11:25:22.411-0600

Change 8413 merged by Jenkins2:
BuildSystem: Cast any intptr_t explicitly to its proposed type.

[https://gerrit.asterisk.org/8413|https://gerrit.asterisk.org/8413]

By: Friendly Automation (friendly-automation) 2018-03-06 13:19:25.709-0600

Change 8412 merged by Jenkins2:
BuildSystem: Cast any intptr_t explicitly to its proposed type.

[https://gerrit.asterisk.org/8412|https://gerrit.asterisk.org/8412]

By: Friendly Automation (friendly-automation) 2018-03-06 13:21:35.178-0600

Change 8414 merged by Jenkins2:
BuildSystem: Cast any intptr_t explicitly to its proposed type.

[https://gerrit.asterisk.org/8414|https://gerrit.asterisk.org/8414]