https://bugs.freedesktop.org/show_bug.cgi?id=93189

--- Comment #6 from Matt Turner <matts...@gmail.com> ---
The point of the ternary magic is to make the macros typeless, like gcc's
atomic ops built-ins
(https://gcc.gnu.org/onlinedocs/gcc-4.4.5/gcc/Atomic-Builtins.html)

The problem is that a bunch of them have to return a value and you can't do
that without statement-expressions which is unsupported by MSVC.


In this particular case, the problem seems to be that we're doing the
(assert(...), 0) trick on a place where the atomic doesn't have to return a
value. Wouldn't it be fine to just change 0 -> (void)0?

But I think I've already spent way too long on this. Vinson, please do not file
bugs about Oracle Solaris Studio compile errors. Patches are of course welcome.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to