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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 15 11:26:30 PST 2015


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

--- Comment #8 from Carson Gaspar <carson at taltos.org> ---
The compiler is Solaris Studio 12.4

The pointer -> integer cast error is actually caused by configure (via
xorg-macros.m4). It adds:

-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED
-errwarn=E_FUNC_HAS_NO_RETURN_STMT -errwarn=E_BAD_PTR_INT_COMBINATION

to the compile line. So Sun's compiler is doing _exactly_ what you told it to
do and refusing to cast pointers to integers implicitly.

Returning anything from a function declared with a void return is still illegal
C99 (you can't cast anything to void). As is the gcc-only a :? b conditional
used in several files. The intel driver module isn't written in C, it's written
in gcc, and should be documented as such.

gcc, the worst thing to ever happen to C language portability.

-- 
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/20150115/7e452205/attachment.html>


More information about the intel-gfx-bugs mailing list