From bc063a3e1e1142997f61185b7b53d51eb6e907aa Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 14 Oct 2009 16:00:52 +0000 Subject: Whoops, I had that warning turned off locally. See http://www.rockbox.org/irc/log-20091014#08:40:11 gcc warns on that one (it's perfectly valid code). It doesn't warn if you do this on plain arrays and since I have had this warning disabled I thought it would not warn on arrays of structs also. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23172 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 3524ba34b7..d4a2893ff2 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -82,9 +82,9 @@ static int wpsbars = 0; /* currently only one wps_state is needed, initialize to 0 */ -static struct wps_state wps_state = { .id3 = NULL}; -static struct gui_wps gui_wps[NB_SCREENS] = {{ 0 }}; -static struct wps_data wps_datas[NB_SCREENS] = {{ 0 }}; +static struct wps_state wps_state = { .id3 = NULL }; +static struct gui_wps gui_wps[NB_SCREENS] = {{ .data = NULL }}; +static struct wps_data wps_datas[NB_SCREENS] = {{ .wps_loaded = 0 }}; /* initial setup of wps_data */ static void wps_state_init(void); -- cgit v1.2.3