Browse code

Deal with compiler warnings.

Andrew Alderwick authored on 07/06/2022 18:39:43
Showing 1 changed files
... ...
@@ -183,10 +183,10 @@ makereference(char *scope, char *label, Uint16 addr)
183 183
 	if(label[1] == '&')
184 184
 		scpy(sublabel(subw, scope, label + 2), r->name, 0x40);
185 185
 	else {
186
-		int p = spos(label + 1, '/');
187
-		if(p > 0) {
186
+		int pos = spos(label + 1, '/');
187
+		if(pos > 0) {
188 188
 			Label *l;
189
-			if((l = findlabel(scpy(label + 1, parent, p))))
189
+			if((l = findlabel(scpy(label + 1, parent, pos))))
190 190
 				l->refs++;
191 191
 		}
192 192
 		scpy(label + 1, r->name, 0x40);
... ...
@@ -352,9 +352,8 @@ parse(char *w, FILE *f)
352 352
 			if(!writebyte(c)) return 0;
353 353
 		break;
354 354
 	case '[':
355
-		if(slen(w) == 1) break; /* else FALLTHROUGH */
356 355
 	case ']':
357
-		if(slen(w) == 1) break; /* else FALLTHROUGH */
356
+		if(slen(w) == 1) break; /* else fallthrough */
358 357
 	default:
359 358
 		/* opcode */
360 359
 		if(findopcode(w) || scmp(w, "BRK", 4)) {