diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-06-26 13:16:36 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-06-26 13:16:36 +0000 |
commit | 4fd09def0fc51d0606e677f1ab59ad695d1cd780 (patch) | |
tree | 4dad3a8bd04f6a0e785c53dc49dad189058f0c24 /sys/src/cmd/qc | |
parent | 759aafa007c42dce044800863455ad6048ed0ba5 (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/qc')
-rw-r--r-- | sys/src/cmd/qc/reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/qc/reg.c b/sys/src/cmd/qc/reg.c index bfd275862..332df4334 100644 --- a/sys/src/cmd/qc/reg.c +++ b/sys/src/cmd/qc/reg.c @@ -317,9 +317,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("set an not used: %B\n", bit); + print("set and not used: %B\n", bit); excise(r); } for(z=0; z<BITS; z++) |