Project

General

Profile

Actions

Bug #2061

closed

Bug #1450: Illumos should be buildable with GCC4

uts homebrew offsetofs cause various pointer-cast warnings

Added by Rich Lowe over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2012-02-02
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Various pieces of the kernel contain homebrew (mostly inlined) implementations of offsetof() which cast down to 32bit results. This causes GCC pointercast warnings, since this will truncate when 64bit.

All of these should use the real offsetof(), which explicitly has a value in size_t (which can then be implicitly truncated as necessary)

Actions #1

Updated by Rich Lowe over 9 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 80 to 100

Resolved in r13603 commit:19698f035619

Actions

Also available in: Atom PDF