Initialize numHot, numWarm

For some reason gcc thinks that numWarm might be used uninitialized.
It's fine with numHot though, strangely.
weechat-hashes
C. McEnroe 2020-07-23 00:22:36 -04:00
parent 3e03b7502b
commit ed7d5c0f34
1 changed files with 2 additions and 2 deletions

4
ui.c
View File

@ -928,8 +928,8 @@ static void toggleIgnore(struct Window *window) {
}
static void showAuto(void) {
uint minHot = UINT_MAX, numHot;
uint minWarm = UINT_MAX, numWarm;
uint minHot = UINT_MAX, numHot = 0;
uint minWarm = UINT_MAX, numWarm = 0;
for (uint num = 0; num < windows.len; ++num) {
struct Window *window = windows.ptrs[num];
if (window->heat >= Hot) {