<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - sna/kgem.h won't compile"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88310#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - sna/kgem.h won't compile"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88310">bug 88310</a>
              from <span class="vcard"><a class="email" href="mailto:carson@taltos.org" title="Carson Gaspar <carson@taltos.org>"> <span class="fn">Carson Gaspar</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>