Re: (void)foo or __unused foo ?

看板FB_current作者時間13年前 (2012/07/28 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/8 (看更多)
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. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1G4kLkm3 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1G4kLkm3 (FB_current)