Re: [dwm] Compiling with pcc

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Tue, 16 Oct 2007 23:28:12 +0200

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..
Received on Tue Oct 16 2007 - 23:28:14 UTC

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