9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bruce Ellis <bruce.ellis@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] warning of putchar
Date: Sat, 14 Jan 2006 21:40:18 +1100	[thread overview]
Message-ID: <775b8d190601140240q314db82xb1a28b9e1796a782@mail.gmail.com> (raw)
In-Reply-To: <0IT200ET9SC10A@lianchuang.com>

putchar is a dinosaur macro.  the diagnostics make sense after expansion.

brucee

On 1/14/06, 党立斌 <danglb@lianchuang.com> wrote:
> /* test.c */
>
> #include <u.h>
> #include <stdio.h>
>
> 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
>
>


  reply	other threads:[~2006-01-14 10:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-14  9:07 党立斌
2006-01-14 10:40 ` Bruce Ellis [this message]
2006-01-14 12:18   ` Charles Forsyth
2006-01-14 12:33     ` erik quanstrom
2006-01-14 18:25       ` Russ Cox
2006-01-14 21:29         ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=775b8d190601140240q314db82xb1a28b9e1796a782@mail.gmail.com \
    --to=bruce.ellis@gmail.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).