Date: Sun, 16 Jan 2005 11:47:48 -0800 From: Tim Kientzle <kientzle@freebsd.org> To: Thomas Dickey <dickey@radix.net> Cc: freebsd-current@freebsd.org Subject: Re: gratuitous gcc warnings: unused function arguments? Message-ID: <41EAC4E4.5020809@freebsd.org> In-Reply-To: <20050116193757.GA10974@saltmine.radix.net> References: <Pine.NEB.3.96L.1050116120744.50371A-100000@fledge.watson.org> <20050116144113.GB66854@gothmog.gr> <41EAB5FE.30603@freebsd.org> <20050116193757.GA10974@saltmine.radix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Thomas Dickey wrote: > On Sun, Jan 16, 2005 at 10:44:14AM -0800, Tim Kientzle wrote: > >>Giorgos Keramidas suggested: >> >>>% (void)argv; >> >>I first saw this idiom for marking unused >>arguments over 10 years ago and have used >>it extensively since then. Very portable; >>highly recommended. > > > except of course for the compilers that warn about no effect... I've not seen that issue with this particular idiom. The compilers I've seen seem to recognize this as a special case. No doubt there are exceptions. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41EAC4E4.5020809>