[Top][All Lists]

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

Re: Unnecessary warnings

From: Kevin Ryde
Subject: Re: Unnecessary warnings
Date: Tue, 26 Sep 2006 08:33:28 +1000
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Bruce Korb <address@hidden> writes:
> These are all due to argument names in prototype declarations.
> Please suffix the names with "_arg" or something.

Or better just drop the names, which avoids any possibility of
clashing with application macros too.

> extern SCM scm_c_make_gsubr (const char *name,
> int req, int opt, int rst, SCM (*fcn) ());
> where "fcn" does not look like a prototype.  It needs "(void)" as the
> argument list.

void is not really true, it can be any number of arguments of course.
Dunno if that makes a difference in practice, with enough casts (of
which there's a few already).

reply via email to

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