summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 001ff5e)
raw | patch | inline | side by side (parent: 001ff5e)
author | Max Kellermann <max@duempel.org> | |
Mon, 15 Sep 2008 10:27:28 +0000 (12:27 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 15 Sep 2008 10:27:28 +0000 (12:27 +0200) |
Uninitialized static variables are put into BSS, which is
automatically zeroed. Initializing doesn't hurt, but in this case,
there were elements missing, emitting a gcc warning.
automatically zeroed. Initializing doesn't hurt, but in this case,
there were elements missing, emitting a gcc warning.
src/screen_clock.c | patch | blob | history |
diff --git a/src/screen_clock.c b/src/screen_clock.c
index dee3e1e3e0edbb21f3700ecca1b134e80abf9f04..d55328189417c5c6dcb470f3da32a5439fdf1122 100644 (file)
--- a/src/screen_clock.c
+++ b/src/screen_clock.c
#define ENABLE_SECONDS 0
-static window_t win = { NULL, 0, 0 };
+static window_t win;
static gboolean enable_seconds = ENABLE_SECONDS;
/* orginal variables from gdc.c */