Re: [PATCH] devpts_fs.h fails with "error: parameter name omitted"

From: H. Peter Anvin
Date: Mon Feb 23 2004 - 23:32:42 EST


Followup to: <20040224024942.GG1200@xxxxxxxxxxxxxxx>
By author: Ian Wienand <ianw@xxxxxxxxxxxxxxxxxx>
In newsgroup: linux.dev.kernel
>
> On Tue, Feb 24, 2004 at 02:24:24AM +0000, viro@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
> > That part makes sense. Previous one doesn't.
>
> Is that by convention or is leaving out the parameter name in the
> prototype standardised somewhere?
>

It's commonly done to make code less macro-sensitive.

Personally I wish that standard C allowed it for definitions as well, rather than
having to type (void)foo; to keep it from complaining about unused parameters.

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/