From 1f0ff952055c920c8671a1587c622e4df8b4a99d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 12:27:28 +0200 Subject: [PATCH] clock: don't initialize static variables with zero 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. --- src/screen_clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen_clock.c b/src/screen_clock.c index dee3e1e..d553281 100644 --- a/src/screen_clock.c +++ b/src/screen_clock.c @@ -26,7 +26,7 @@ #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 */ -- 2.30.2