Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2012 18:34:10 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        current@freebsd.org
Subject:   Re: (void)foo or __unused foo ?
Message-ID:  <10806.1343414050@critter.freebsd.dk>
In-Reply-To: Your message of "Fri, 27 Jul 2012 14:51:34 %2B0200." <20120727125134.GA58187@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20120727125134.GA58187@onelab2.iet.unipi.it>, Luigi Rizzo writes:

>A comment might be used to explain the intention in even more detail:
>
>	(void)foo;	/* unused on XyBSD and Babbage-OS */

Comments are noise which compilers and static checkers cannot and
should not examine.

The intent should be expressed where compilers and static checkers
can see it.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10806.1343414050>