From 80f18f60d239499d3d266bf3a6a7e5e78374aca7 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 5 Dec 2014 18:02:41 +0100 Subject: [PATCH] WPrefs: Use standard C declaration of array instead of GNU syntax As pointed by Clang, the declaration of array was using the GNU old syntax, not the standard C. --- WPrefs.app/Appearance.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/WPrefs.app/Appearance.c b/WPrefs.app/Appearance.c index 9e0e8a6a..c8cbc75e 100644 --- a/WPrefs.app/Appearance.c +++ b/WPrefs.app/Appearance.c @@ -97,9 +97,9 @@ static const struct { const char *db_value; const char *file_name; } menu_style[] = { - [MSTYLE_NORMAL] { "normal", "msty1" }, - [MSTYLE_SINGLE] { "singletexture", "msty2" }, - [MSTYLE_FLAT] { "flat", "msty3" } + [MSTYLE_NORMAL] = { "normal", "msty1" }, + [MSTYLE_SINGLE] = { "singletexture", "msty2" }, + [MSTYLE_FLAT] = { "flat", "msty3" } }; /********************************************************************/ @@ -107,9 +107,9 @@ static const struct { const char *label; const char *db_value; } wintitle_align[] = { - [WALeft] { N_("Left"), "left" }, - [WACenter] { N_("Center"), "center" }, - [WARight] { N_("Right"), "right" } + [WALeft] = { N_("Left"), "left" }, + [WACenter] = { N_("Center"), "center" }, + [WARight] = { N_("Right"), "right" } }; /********************************************************************/