On 03/30/14 06:00 AM, Thomas Klausner wrote:
(In fact you could probably put the whole function body in the #else...#endif
  clause, but then you'd have to add an attribute to tell the compiler it's
  expected that the pInfo argument is unused.)

If you prefer that, please let me know what magic I need to use to do that :)

There's a _X_UNUSED define in Xfuncproto.h that sets __attribute__((__unused__))
for compilers which support it, but then you have to also ensure you're using at
least xproto >= 7.0.22 to get the definition for it.

Attached patch ok?

Yes, Reviewed-by: Alan Coopersmith <[email protected]>

--
        -Alan Coopersmith-              [email protected]
         Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to