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.
This commit is contained in:
cinap_lenrek 2021-06-26 13:16:36 +00:00
parent 759aafa007
commit 4fd09def0f
9 changed files with 18 additions and 18 deletions

View file

@ -359,9 +359,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++)

View file

@ -359,9 +359,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++)

View file

@ -329,9 +329,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++)

View file

@ -520,9 +520,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++)

View file

@ -324,9 +324,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++)

View file

@ -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++)

View file

@ -307,9 +307,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++)

View file

@ -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++)

View file

@ -319,9 +319,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++)