summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
76d5277)
mood.c:175:3: warning: Value stored to 'ret' is never read
ret = get_item_score(item, &afsi, &afhi, path, &item_score,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This time scan-build found a real bug.
list_for_each_entry(item, &m->score_list, mood_item_node) {
ret = get_item_score(item, &afsi, &afhi, path, &item_score,
&score_arg_sum);
list_for_each_entry(item, &m->score_list, mood_item_node) {
ret = get_item_score(item, &afsi, &afhi, path, &item_score,
&score_arg_sum);
+ if (ret == 0)
+ continue;
score += item_score;
}
if (score_arg_sum)
score += item_score;
}
if (score_arg_sum)