[Bug 88310] sna/kgem.h won't compile

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 14 00:36:23 PST 2015


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

--- Comment #7 from Jani Nikula <jani.nikula at intel.com> ---
In general, if you have build errors, it will be helpful to include the
compiler version, options and output.

For completeness, here are the relevant parts of the C99 spec.

6.8.6.4p3 The return statement

If a return statement with an expression is executed, the value of the
expression is returned to the caller as the value of the function call
expression. If the expression has a type different from the return type of the
function in which it appears, the value is converted as if by assignment to an
object having the return type of the function.

6.5.16.1p1 Simple assignment

One of the following shall hold:
   [...]
 - the left operand has type _Bool and the right is a pointer.

6.5.16.1p2 Semantics

In simple assignment (=), the value of the right operand is converted to the
type of the assignment expression and replaces the value stored in the object
designated by the left operand.

6.3.1.2p1 Boolean type

When any scalar value is converted to _Bool, the result is 0 if the value
compares equal to 0; otherwise, the result is 1.

6.2.5p21 Types

Arithmetic types and pointer types are collectively called scalar types. Array
and structure types are collectively called aggregate types.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20150114/8719dc62/attachment.html>


More information about the intel-gfx-bugs mailing list