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:
parent
759aafa007
commit
4fd09def0f
9 changed files with 18 additions and 18 deletions
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue