If I append the flags like this:
CPPFLAGS="-Werror=format-security -Werror=switch -Werror=return-type $CPPFLAGS -Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Werror=switch -Werror=return-type -Werror -Wno-error=pointer-sign -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-error=strict-overflow -Wno-error=write-strings -Wno-error=format -Wno-error=format-extra-args"
I'm not sure, though, whether this is the correct solution to this problem. The comment above says that this only checks whether the compiler supports these flags, doesn't it? It configures without errors. When compiling I get the same errors as su_v (kopftracer and gobject_ has incomplete type...).
Regards, Markus
-----Ursprüngliche Nachricht----- Von: Johan Engelen [mailto:jbc.engelen@...2592...] Gesendet: Freitag, 21. März 2014 23:26 An: Markus Engel; 'Inkscape-Devel' Betreff: Re: AW: [Inkscape-devel] Warnings check
On 21-3-2014 21:14, Markus Engel wrote:
Hi, on Ubuntu 13.10 x64 I can't even run configure without errors:
configure:23320: checking glibmm/threads.h usability configure:23320: /usr/lib/ccache/g++ -c [...] conftest.cpp >&5 conftest.cpp:75:0: error: "ENABLE_NLS" redefined [-Werror] #define ENABLE_NLS /**/ ^ conftest.cpp:25:0: note: this is the location of the previous definition #define ENABLE_NLS 1 ^ cc1plus: all warnings being treated as errors
Ouch..... It'd be great if some people could work on at least getting configure to work with -Werror. Does it help if you add the flags to configure.ac line 99 ?
Thanks a bunch, Johan