diff options
author | C. McEnroe | 2020-07-23 00:22:36 -0400 |
---|---|---|
committer | C. McEnroe | 2020-07-23 00:22:36 -0400 |
commit | ed7d5c0f343c369497062e354e2e8ff043a358f3 (patch) | |
tree | 5385a6f182def28da16a601cc1f17e31bcdb3552 /ui.c | |
parent | 3e03b7502b1b13842b5a34481671499129916ce2 (diff) |
Initialize numHot, numWarm
For some reason gcc thinks that numWarm might be used uninitialized. It's fine with numHot though, strangely.
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.c b/ui.c index 69eafee..c92fb01 100644 --- a/ui.c +++ b/ui.c @@ -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) { |