guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH]-Wstrict-prototypes on SCM_FUNC_CAST_ARBITRARY_ARGS


From: Kevin Ryde
Subject: Re: [PATCH]-Wstrict-prototypes on SCM_FUNC_CAST_ARBITRARY_ARGS
Date: Sun, 21 Dec 2003 10:17:08 +1000
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Stephen Compall <address@hidden> writes:
>
> GCC, by default, does not produce warnings in system
> headers (i.e. libguile.h & depends).

Ah, tricky.

> If those functions have such
> parameter types, though, missing `void' where it should be, then you
> would get warnings there while compiling Guile, I should think.

Yes, except that warning isn't enabled. :)

I'd suggest putting a comment in your change about why the cast is to
"(*)(void)" where the parameter is "(*)()", in case anyone wonders
like me why they're not the same.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]