This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Bizarre output.
- From: corey taylor <corey dot taylor at gmail dot com>
- To: Antonio Coralles <noche dot suapie at reflex dot at>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 29 Mar 2005 17:35:49 -0600
- Subject: Re: Bizarre output.
- References: <fc.3b9aca006b2d42243b9aca0024422d6b.428315a@reflex.at> <4249D2EA.4080500@reflex.at> <fc.3b9aca00f5c969e73b9aca0024422d6b.428332a@reflex.at> <4249E1DF.9090300@reflex.at>
- Reply-to: corey taylor <corey dot taylor at gmail dot com>
> > (void)b;
>
> If never seen this kind of cast before ... Is this statndard c/c++ or is
> it an gcc extension ? What is the effect of it ?
My apologies for the extra paramter. This function is part of a
library I help maintain, and we don't break old revisions much so it
was just left in apparantly.
(void)b;
This removes the unused parameter warning by using the parameter by
voiding the effect.
corey