On Sat, Jun 07, 2014 at 12:14:36PM -0700, Linus Torvalds wrote:
> On Sat, Jun 7, 2014 at 11:48 AM, Linus Torvalds
> <[email protected]> wrote:
> >
> > I'll see if I can make some really ugly macro magic that makes this 
> > "typesafe".
> 
> Here's a trial.
> 
> Note: this uses gcc-specific crud, so may not be really acceptable. We

clang on Linux liked it just fine, as did mingw32 for Linux->Windows (but
that's of course gcc based). And I just tried it on Mac with their version
of clang and that was happy, too :-)

> could make the "MATCH()" macro do the type-checking only with gcc, and
> then non-gcc compilers would just silently do the casting.

I don't see a need for this.

> Does this make any difference for you on Windows?

Yes, it fixes the crash.

Thank you.

Could I get a signed-off pach with a decent commit message, please?

Thanks

/D
_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to