From: Christophe CURIS <[email protected]>
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 9e0e8a6..c8cbc75 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" }
};
/********************************************************************/
--
2.1.3
--
To unsubscribe, send mail to [email protected].