kencc: clarify warning for unused assignments

front
Noam Preil 2021-06-21 03:29:58 +00:00
parent 21075859e4
commit 1a09421f7d
9 changed files with 15 additions and 15 deletions

View File

@ -359,7 +359,7 @@ loop2:
~(r->refahead.b[z] | r->calahead.b[z] | addrs.b[z]);
if(bany(&bit)) {
nearln = r->prog->lineno;
warn(Z, "set and not used: %B", bit);
warn(Z, "assignment not used: %B", bit);
if(debug['R'])
print("set an not used: %B\n", bit);
excise(r);

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, "set and not used: %B", bit);
warn(Z, "assignment not used: %B", bit);
if(debug['R'])
print("set an not used: %B\n", bit);
print("assignment 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, "set and not used: %B", bit);
warn(Z, "assignment not used: %B", bit);
if(debug['R'])
print("set and not used: %B\n", bit);
print("assignment 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, "set and not used: %B", bit);
warn(Z, "assignment not used: %B", bit);
if(debug['R'])
print("set and not used: %B\n", bit);
print("assignment 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, "set and not used: %B", bit);
warn(Z, "assignment not used: %B", bit);
if(debug['R'])
print("set and not used: %B\n", bit);
print("assignment 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, "set and not used: %B", bit);
warn(Z, "assignment not used: %B", bit);
if(debug['R'])
print("set and not used: %B\n", bit);
print("assignment not used: %B\n", bit);
excise(r);
}
for(z=0; z<BITS; z++)

View File

@ -307,7 +307,7 @@ loop2:
~(r->refahead.b[z] | r->calahead.b[z] | addrs.b[z]);
if(bany(&bit)) {
nearln = r->prog->lineno;
warn(Z, "set and not used: %B", bit);
warn(Z, "assignment not used: %B", bit);
if(debug['R'])
print("set an not used: %B\n", bit);
excise(r);

View File

@ -317,7 +317,7 @@ loop2:
~(r->refahead.b[z] | r->calahead.b[z] | addrs.b[z]);
if(bany(&bit)) {
nearln = r->prog->lineno;
warn(Z, "set and not used: %B", bit);
warn(Z, "assignment not used: %B", bit);
if(debug['R'])
print("set an not used: %B\n", bit);
excise(r);

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, "set and not used: %B", bit);
warn(Z, "assignment not used: %B", bit);
if(debug['R'])
print("set and not used: %B\n", bit);
print("assignment not used: %B\n", bit);
excise(r);
}
for(z=0; z<BITS; z++)