From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <775b8d190601140240q314db82xb1a28b9e1796a782@mail.gmail.com> Date: Sat, 14 Jan 2006 21:40:18 +1100 From: Bruce Ellis To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] warning of putchar In-Reply-To: <0IT200ET9SC10A@lianchuang.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0IT200ET9SC10A@lianchuang.com> Topicbox-Message-UUID: d6ea36f2-ead0-11e9-9d60-3106f5b1d025 putchar is a dinosaur macro. the diagnostics make sense after expansion. brucee On 1/14/06, 党立斌 wrote: > /* test.c */ > > #include > #include > > void > main() > { > putchar('\n'); > } > > 8c -w test.c > > warning:test.c:9 result of operation not used > warning:test.c:9 result of operation not used > warning:test.c:9 result of operation not used > > three repetitive warnings > >