Re: [dwm] Compiling with pcc

From: James Turner <james_AT_bsdgroup.org>
Date: Tue, 16 Oct 2007 17:43:09 -0400

On Tue, Oct 16, 2007 at 11:28:12PM +0200, Szabolcs Nagy wrote:
> On 10/16/07, James Turner <james_AT_bsdgroup.org> wrote:
> > dwm.c, line 362: warning: implicit conversion of argument 1 due to \
> > prototype
>
> looking into pcc src it is highly probable to be a compiler defect
> (after typechecking the arguments, this is the default error message
> when prototype cannot be matched to the arguments)
>
> also note that XSetErrorHandler is defined hideously (in Xlib.h) as
>
> typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib
> spec */
> Display* /* display */,
> XErrorEvent* /* error_event */
> );
>
> extern XErrorHandler XSetErrorHandler (
> XErrorHandler /* handler */
> );
>
>
>
> ironnically i coulnd't compile the "portable c compiler" on linux to
> test it because of bsd dependencies..

Thanks for taking a look at it. Yeah, from looking at Xlib.h and dwm.c
from my understanding everything is being done correct, int and so
forth. Since I didn't get any response from the #pcc chan on freenode,
I think I'll send something to the pcc mailing list.

-- 
James Turner
BSD Group Consulting
http://www.bsdgroup.org
Received on Tue Oct 16 2007 - 23:43:45 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:59:54 UTC