Remove set but not used variables
Highlighted by clang-15 warnings such as: warning: variable 'index' set but not used [-Wunused-but-set-variable]
This commit is contained in:
parent
6c4010e442
commit
f5e2d044df
6 changed files with 1 additions and 20 deletions
|
|
@ -1003,7 +1003,6 @@ public:
|
|||
List *baselist = Getattr(n, "bases");
|
||||
if (baselist && Len(baselist)) {
|
||||
Iterator b;
|
||||
int index = 0;
|
||||
b = First(baselist);
|
||||
while (b.item) {
|
||||
String *bname = Getattr(b.item, "name");
|
||||
|
|
@ -1016,7 +1015,6 @@ public:
|
|||
Printf(base_class_names, "\"%s\",", bname_mangled);
|
||||
Printf(base_class, "0,");
|
||||
b = Next(b);
|
||||
index++;
|
||||
Delete(bname_mangled);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue