[Mesa-dev] [Bug 93189] "./util/u_inlines.h", line 83: operands have incompatible types: void ":" int

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 1 12:15:02 PST 2015


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

--- Comment #6 from Matt Turner <mattst88 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151201/9d97da80/attachment.html>


More information about the mesa-dev mailing list