[gnome-software/wip/hughsie/meson: 10/11] trivial: Fix warnings when using -Wmissing-braces



commit 121e68ecd0a801ccae0469a363f8a30dd2cac7c2
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]