[gnome-software] trivial: Fix warnings when using -Wmissing-braces
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix warnings when using -Wmissing-braces
- Date: Tue, 6 Dec 2016 10:10:33 +0000 (UTC)
commit d122cdc23aeed869d00ba33a2da429c229651a0f
Author: Richard Hughes <richard hughsie com>
Date: Mon Dec 5 10:24:03 2016 +0000
trivial: Fix warnings when using -Wmissing-braces
src/gs-shell-details.c | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 3545e14..882c177 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -1801,27 +1801,27 @@ gs_shell_details_content_rating_button_cb (GtkWidget *widget, GsShellDetails *se
struct {
const gchar *ids[5]; /* ordered inside from worst to best */
} id_map[] = {
- { "violence-bloodshed",
+ {{"violence-bloodshed",
"violence-realistic",
"violence-fantasy",
- "violence-cartoon", NULL },
- { "violence-sexual", NULL },
- { "drugs-alcohol", NULL },
- { "drugs-narcotics", NULL },
- { "sex-nudity", NULL },
- { "sex-themes", NULL },
- { "language-profanity", NULL },
- { "language-humor", NULL },
- { "language-discrimination", NULL },
- { "money-advertising", NULL },
- { "money-gambling", NULL },
- { "money-purchasing", NULL },
- { "social-audio",
+ "violence-cartoon", NULL }},
+ {{"violence-sexual", NULL }},
+ {{"drugs-alcohol", NULL }},
+ {{"drugs-narcotics", NULL }},
+ {{"sex-nudity", NULL }},
+ {{"sex-themes", NULL }},
+ {{"language-profanity", NULL }},
+ {{"language-humor", NULL }},
+ {{"language-discrimination", NULL }},
+ {{"money-advertising", NULL }},
+ {{"money-gambling", NULL }},
+ {{"money-purchasing", NULL }},
+ {{"social-audio",
"social-chat",
"social-contacts",
- "social-info", NULL },
- { "social-location", NULL },
- { NULL }
+ "social-info", NULL }},
+ {{"social-location", NULL }},
+ {{ NULL }}
};
/* get the worst thing */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]