RFC: Avoiding #warning (C/C++ preprocessor extension)

Martijn Klingens klingens at kde.org
Tue Nov 1 12:26:25 GMT 2005


On Tuesday 01 November 2005 09:58, Stephan Kulow wrote:
> And SUSE had to remove -Werror from all well intended KDE packages because
> gcc4 decided Qt needs way more virtual destructors and warns about it in
> -Wall now. Just too bad that adding them to Qt3 is binary incompatible. So
> good bye -Werror

Doesn't it work if you patch the failing Qt includes with '#pragma GCC 
system_header'? AFAICS that shouldn't affect BC and should suppress the 
warnings and hence the -Werror traps.

See http://gcc.gnu.org/onlinedocs/gcc-3.2.3/cpp/Pragmas.html

-- 
Martijn




More information about the kde-core-devel mailing list