summaryrefslogtreecommitdiff
path: root/sys/src/cmd/8c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-06-26 13:16:36 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-06-26 13:16:36 +0000
commit4fd09def0fc51d0606e677f1ab59ad695d1cd780 (patch)
tree4dad3a8bd04f6a0e785c53dc49dad189058f0c24 /sys/src/cmd/8c
parent759aafa007c42dce044800863455ad6048ed0ba5 (diff)
kencc: revert back to "set but not used"
The change to "assignment not used" breaks symmetry with "used and not set" and removes the reference to the specific warning mentioned in /sys/doc/comp.ms. Also, the patch was half-assed as that it left some typos in like "used an not set", which this change also fixed.
Diffstat (limited to 'sys/src/cmd/8c')
-rw-r--r--sys/src/cmd/8c/reg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/8c/reg.c b/sys/src/cmd/8c/reg.c
index 70a8f796a..c2bab2d02 100644
--- a/sys/src/cmd/8c/reg.c
+++ b/sys/src/cmd/8c/reg.c
@@ -451,9 +451,9 @@ loop2:
~(r->refahead.b[z] | r->calahead.b[z] | addrs.b[z]);
if(bany(&bit)) {
nearln = r->prog->lineno;
- warn(Z, "assignment not used: %B", bit);
+ warn(Z, "set and not used: %B", bit);
if(debug['R'])
- print("assignment not used: %B\n", bit);
+ print("set and not used: %B\n", bit);
excise(r);
}
for(z=0; z<BITS; z++)