Actions
Bug #2061
closedBug #1450: Illumos should be buildable with GCC4
uts homebrew offsetofs cause various pointer-cast warnings
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)
Updated by Rich Lowe over 10 years ago
- Status changed from In Progress to Resolved
- % Done changed from 80 to 100
Resolved in r13603 commit:19698f035619
Actions