9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Noam Preil <noam@pixelhero.dev>
To: Anthony Martin <9front@9front.org>
Subject: Re: [9front] commit 1a09421f7db897e1d2e2a9210f79ca4389362c3a
Date: Mon, 21 Jun 2021 12:37:57 +0000 (UTC)	[thread overview]
Message-ID: <388d3f9e-b352-4f4e-bdd6-e0587a2cf907@pixelhero.dev> (raw)
In-Reply-To: <YNBLzJoLBatVq6U6@alice>

"set and not used: foo" heavily implies that the variable is not used. 
This is not necessarily true.

int a = 0;
a = bar();
...

This would produce "set and not used: a" with the line number of the 
declaration, even if the subsequent assignment is used. "assignment not 
used" clarifies the actual warning.

In other words, the warning was changed because the prior form was simply 
wrong.

- Noam Preil

  reply	other threads:[~2021-06-21 19:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-21  8:20 Anthony Martin
2021-06-21 12:37 ` Noam Preil [this message]
2021-06-21 15:20 ` Noam Preil
2021-06-21 18:27   ` hiro
2021-06-21 17:53 ` theinicke

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=388d3f9e-b352-4f4e-bdd6-e0587a2cf907@pixelhero.dev \
    --to=noam@pixelhero.dev \
    --cc=9front@9front.org \
    /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).