Fix warnings. Initialized struct needs at least one member actually initialized. Add a dummy until at least one is guaranteed in all builds. Please remove it at that point.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12223 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eed62f1657
commit
946e4f871b
2 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,7 @@ struct user_settings global_settings;
|
|||
or reset should be defined here and not in settings_list */
|
||||
struct system_status global_status =
|
||||
{
|
||||
.__dummy = 0,
|
||||
#ifdef CONFIG_TUNER
|
||||
.in_radio_screen = false,
|
||||
.radio_status = FMRADIO_OFF,
|
||||
|
|
|
@ -250,6 +250,9 @@ void settings_apply_trigger(void);
|
|||
|
||||
struct system_status
|
||||
{
|
||||
int __dummy; /* dummy member needed until at least one statically
|
||||
initialized member is guaranteed to be in
|
||||
global_status */
|
||||
int resume_index; /* index in playlist (-1 for no active resume) */
|
||||
int resume_first_index; /* index of first track in playlist */
|
||||
uint32_t resume_offset; /* byte offset in mp3 file */
|
||||
|
|
Loading…
Reference in a new issue