Commit ae8bc7a8 authored by James Zern's avatar James Zern Committed by Gerrit Code Review

Merge "add_warning(): remove dead store"

parents 352db1d1 c04c3138
......@@ -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