Initialize numHot, numWarm
For some reason gcc thinks that numWarm might be used uninitialized. It's fine with numHot though, strangely.master
parent
3e03b7502b
commit
ed7d5c0f34
4
ui.c
4
ui.c
|
@ -928,8 +928,8 @@ static void toggleIgnore(struct Window *window) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void showAuto(void) {
|
static void showAuto(void) {
|
||||||
uint minHot = UINT_MAX, numHot;
|
uint minHot = UINT_MAX, numHot = 0;
|
||||||
uint minWarm = UINT_MAX, numWarm;
|
uint minWarm = UINT_MAX, numWarm = 0;
|
||||||
for (uint num = 0; num < windows.len; ++num) {
|
for (uint num = 0; num < windows.len; ++num) {
|
||||||
struct Window *window = windows.ptrs[num];
|
struct Window *window = windows.ptrs[num];
|
||||||
if (window->heat >= Hot) {
|
if (window->heat >= Hot) {
|
||||||
|
|
Loading…
Reference in New Issue