add_warning(): remove dead store
Change-Id: I5cfc0aa9c436c7ba1b49337d06a0181f7cda920f
This commit is contained in:
Родитель
7c8a66664c
Коммит
c04c31386f
|
@ -54,11 +54,10 @@ static void add_warning(const char *warning_string,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void free_warning_list(struct WarningList *warning_list) {
|
static void free_warning_list(struct WarningList *warning_list) {
|
||||||
struct WarningListNode *node = warning_list->warning_node;
|
|
||||||
while (warning_list->warning_node != NULL) {
|
while (warning_list->warning_node != NULL) {
|
||||||
node = warning_list->warning_node->next_warning;
|
struct WarningListNode *const node = warning_list->warning_node;
|
||||||
free(warning_list->warning_node);
|
warning_list->warning_node = node->next_warning;
|
||||||
warning_list->warning_node = node;
|
free(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче