/usr/local/src/tk8.4.16/unix/tkUnixDraw.c:97: error: void value not
ignored as it ought to be
tkUnixDraw.c certainly is guilty of checking the return value of
XEmptyRegion in line 97:
if (XEmptyRegion((Region) damageRgn)) {
And X11/Xutil.h certainly defines the function as a void:
extern void XEmptyRegion(
I'm sure I have missed something (obvious to others) here.
If this question is better directed to another list, please let me
know.
Kevin Buchs
>
> And X11/Xutil.h certainly defines the function as a void:
>
> extern void XEmptyRegion(
>
> I'm sure I have missed something (obvious to others) here.
That's peculiar. On my Solaris system, the man page for XEmptyRegion
defines it to be type Bool.
It's the same way on my Red Hat local system.
When I google for void XEmptyRegion I see a variety of 2002 notes from
redhat mailing lists that patch a void declaration to a Bool...
http://www.xfree86.org/current/XEmptyRegion.3.html is the xfree86's
online doc for their code, and it shows the function as returning
Bool.
I recommend you work with the Ubuntu folk to see what happened. The
function appears to have been documented as returning Bool since at
least 1998...
>
> If this question is better directed to another list, please let me
> know.
This is the right place to ask.