This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 2.1.127pre2
- To: Richard Gooch <rgooch at atnf dot csiro dot au>
- Subject: Re: 2.1.127pre2
- From: Linus Torvalds <torvalds at transmeta dot com>
- Date: Tue, 27 Oct 1998 14:16:46 -0800 (PST)
- cc: "David S. Miller" <davem at dm dot cobaltmicro dot com>, by-tor at by-tor dot tacorp dot net, linux-kernel at vger dot rutgers dot edu, egcs at cygnus dot com
On Wed, 28 Oct 1998, Richard Gooch wrote:
> > No, we should do it as
> >
> > tmp->foo_rwlock = (rw_lock_t) RWLOCK_INIT;
> >
> > which is legal gcc.
>
> But gross. Having to do that when you use RWLOCK_INIT is ugly. What
> about putting the cast into the macro itself?
Oh, that's how I did it, I just wrote the above as an example.
Linus