Commit c04c3138 authored by James Zern's avatar James Zern

add_warning(): remove dead store

Change-Id: I5cfc0aa9c436c7ba1b49337d06a0181f7cda920f
parent 7c8a6666
......@@ -54,11 +54,10 @@ static void add_warning(const char *warning_string,
}
static void free_warning_list(struct WarningList *warning_list) {
struct WarningListNode *node = warning_list->warning_node;
while (warning_list->warning_node != NULL) {
node = warning_list->warning_node->next_warning;
free(warning_list->warning_node);
warning_list->warning_node = node;
struct WarningListNode *const node = warning_list->warning_node;
warning_list->warning_node = node->next_warning;
free(node);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment