(void)foo or __unused foo ?
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Jul 27 18:34:13 UTC 2012
In message <20120727125134.GA58187 at 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 at 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.
More information about the freebsd-current
mailing list