Quoth Christophe,

From: Christophe CURIS <christophe.cu...@free.fr>

The declarations have been split by source file, adding the usual
separation mark. Removed these 2 prototypes:
  - W_SetFocusOfToplevel: case typo, the correct prototype already existed
in the file;
  - W_TextWidth: function is not defined anywhere
---
  WINGs/WINGs/WINGsP.h |  627 ++++++++++++++++++++++++++------------------------
  1 file changed, 327 insertions(+), 300 deletions(-)

I just tried building with clang on my Fedora 17 machine for the first time in a while. The build bombs out with

libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/lib/locale\" -DRESOURCE_PATH=\"/usr/share/WINGs\" -I../WINGs/WINGs -I../wrlib -I../src -I/usr/include/freetype2 -I/usr/include -D_XOPEN_SOURCE=600 -g -O0 -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -fPIC -DPIC -o .libs/error.o
In file included from error.c:31:
../WINGs/WINGs/WINGsP.h:415:3: error: redefinition of typedef 'W_Color' is invalid in C [-Wtypedef-redefinition]
} W_Color;
  ^
../WINGs/WINGs/WINGsP.h:70:24: note: previous definition is here
typedef struct W_Color W_Color;

Same for W_Pixmap and W_View. Adding -Wno-typedef-redefinition shuts clang up.

On my Fedora 18 machine with the same clang invocation the same scary stuff is emitted as warnings not errors.

  Building with gcc and the same flags works fine.

  clang hungry!


--
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to