Hi, After investigating a bit more, I found that the problem reported by Yves is actually a bug, which GCC silently hides. I propose the attached patch to solve this.
Best regards, Christophe.
From a2a156984f4d3ac4a50639cdcbb90b0bdceb0d63 Mon Sep 17 00:00:00 2001 From: Christophe CURIS <[email protected]> Date: Sat, 21 Apr 2012 14:01:27 +0200 Subject: [PATCH] Fixed wrong structure declaration The declaration of the structure actually also created an unused variable. This variable was not used anywhere, and lead to symbol defined in multiple objects. These symbol are silently merged by GCC, thus no problem was reported. The issue was raised by Yves de Champlain when trying to compile with LLVM/clang which is a bit stricter there. --- WINGs/WINGs/WINGsP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WINGs/WINGs/WINGsP.h b/WINGs/WINGs/WINGsP.h index a619a70..33aa87a 100644 --- a/WINGs/WINGs/WINGsP.h +++ b/WINGs/WINGs/WINGsP.h @@ -122,7 +122,7 @@ typedef struct W_DragDestinationInfo { } W_DragDestinationInfo; -struct W_DraggingInfo { +typedef struct W_DraggingInfo { unsigned char protocolVersion; /* version supported on the other side */ Time timestamp; -- 1.7.9.5
