This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: warning for typedef'ed type


On Tue, Nov 09, 1999 at 03:07:00AM +0000, Joern Rennecke wrote:
> You can (ab)use transparent unions to overcome this problem.  Just wrap
> your int in a union instead of a struct, and give it the transparent union
> attribute.  It will then be passed like and int as a function argument.

Not as a function return value though.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]