summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-14 16:00:52 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-14 16:00:52 +0000
commitbc063a3e1e1142997f61185b7b53d51eb6e907aa (patch)
tree699d6c2e81e35e2f679268bab2be44c2d41ad632
parent0f0d9064c5e7add982d4b62850375985d79c1168 (diff)
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
-rw-r--r--apps/gui/wps.c6
1 files 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);