<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - "./util/u_inlines.h", line 83: operands have incompatible types: void ":" int"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93189#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - "./util/u_inlines.h", line 83: operands have incompatible types: void ":" int"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93189">bug 93189</a>
from <span class="vcard"><a class="email" href="mailto:mattst88@gmail.com" title="Matt Turner <mattst88@gmail.com>"> <span class="fn">Matt Turner</span></a>
</span></b>
<pre>The point of the ternary magic is to make the macros typeless, like gcc's
atomic ops built-ins
(<a href="https://gcc.gnu.org/onlinedocs/gcc-4.4.5/gcc/Atomic-Builtins.html">https://gcc.gnu.org/onlinedocs/gcc-4.4.5/gcc/Atomic-Builtins.html</a>)
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>