]> git.lizzy.rs Git - plan9front.git/commitdiff
kencc: revert back to "set but not used"
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sat, 26 Jun 2021 13:16:36 +0000 (13:16 +0000)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sat, 26 Jun 2021 13:16:36 +0000 (13:16 +0000)
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.

sys/src/cmd/1c/reg.c
sys/src/cmd/2c/reg.c
sys/src/cmd/5c/reg.c
sys/src/cmd/6c/reg.c
sys/src/cmd/7c/reg.c
sys/src/cmd/8c/reg.c
sys/src/cmd/kc/reg.c
sys/src/cmd/qc/reg.c
sys/src/cmd/vc/reg.c

index 26adbf222c29594bc549a2fb8a50b767ac1153d4..7b0ca198423685f67ac481c3a46a62799632b192 100644 (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++)
index 0f724e404180e5a9ebe6197e6ca25dd2e884af38..81a2564bcd770c44949a138c7b4c862d23c0fcef 100644 (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++)
index 0e9c6335c7fafd055220e467aaa7c794d851e198..a27b7148a713dfef23a9f1538c67b43f7883abd3 100644 (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++)
index 2c44e2e219ce8dccfbabf9693c4f922990c55295..82a32a1db4bc626f26c1ba5c0ad621a8ba111b66 100644 (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++)
index 50a688ecb727a3616699aeb3fe116d7b505b49e8..d992ba8f97653bd1e958b39c853abbc4ccbe54f5 100644 (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++)
index 70a8f796ade2d392ee44d3db70a7f196b3ac44a4..c2bab2d02cb672fa301944acab766c06eafbf7b8 100644 (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++)
index 4f777dcc029abd6c3edd05f6a87eb115665e704f..91b5ecc744c996ed7c707233ff8b47a72fc39c70 100644 (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++)
index bfd275862eccf2deddd491b57e9788dda32bd287..332df4334a47af96a4a52a4db06794f59e3798cd 100644 (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++)
index b6aefa19f76ab945818ae917acd1faa8d346aa6a..c0d294c984bc0d064f633822f91fc385035937d1 100644 (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++)