From: Christophe CURIS <christophe.cu...@free.fr> As reported by Iain Patterson, the clang compiler is (by default) strictier on having clean C syntax. A few structure definition did not comply, now they do.
Signed-off-by: Christophe CURIS <christophe.cu...@free.fr> --- WINGs/WINGs/WINGsP.h | 12 ++++++------ src/geomview.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/WINGs/WINGs/WINGsP.h b/WINGs/WINGs/WINGsP.h index 87765c1..de01412 100644 --- a/WINGs/WINGs/WINGsP.h +++ b/WINGs/WINGs/WINGsP.h @@ -402,7 +402,7 @@ void W_BalloonHandleLeaveView(WMView *view); /* ---[ wcolor.c ]-------------------------------------------------------- */ -typedef struct W_Color { +struct W_Color { struct W_Screen *screen; XColor color; @@ -412,7 +412,7 @@ typedef struct W_Color { struct { unsigned int exact:1; } flags; -} W_Color; +}; #define W_PIXEL(c) (c)->color.pixel @@ -504,7 +504,7 @@ int W_GetTextHeight(WMFont *font, const char *text, int width, int wrap); /* ---[ wpixmap.c ]------------------------------------------------------- */ -typedef struct W_Pixmap { +struct W_Pixmap { struct W_Screen *screen; Pixmap pixmap; Pixmap mask; @@ -512,7 +512,7 @@ typedef struct W_Pixmap { unsigned short height; short depth; short refCount; -} W_Pixmap; +}; /* ---[ wview.c ]--------------------------------------------------------- */ @@ -526,7 +526,7 @@ typedef struct W_ViewDelegate { unsigned int*, unsigned int*); } W_ViewDelegate; -typedef struct W_View { +struct W_View { struct W_Screen *screen; WMWidget *self; /* must point to the widget the view belongs to */ @@ -599,7 +599,7 @@ typedef struct W_View { } flags; int refCount; -} W_View; +}; #define W_VIEW_REALIZED(view) (view)->flags.realized #define W_VIEW_MAPPED(view) (view)->flags.mapped diff --git a/src/geomview.c b/src/geomview.c index 859cb4c..3564ffa 100644 --- a/src/geomview.c +++ b/src/geomview.c @@ -4,7 +4,7 @@ #include "geomview.h" -typedef struct W_GeometryView { +struct W_GeometryView { W_Class widgetClass; WMView *view; @@ -25,7 +25,7 @@ typedef struct W_GeometryView { } data; unsigned showPosition:1; -} WGeometryView; +}; static void handleEvents(XEvent * event, void *clientData); static void paint(WGeometryView * gview); -- 1.7.10.4 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.