[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to lower warning level? [header wrappers, GCC]
From: |
Maciej Pilichowski |
Subject: |
How to lower warning level? [header wrappers, GCC] |
Date: |
Sat, 08 Jan 2005 23:35:29 +0100 |
Hello there,
The short version -- how to set warning level just for one specific
file, or more exactly how to relax warning level for it?
The long version -- I try to work at maximum warning level
/including -Werror/ but lately I have to work with QT and this library
generates a lot of warnings. I have read on
http://www.artima.com/cppsource/ C++ Coding Standards and tried to do
something similar -- i.e. write a wrapper for all QT included headers.
I would be nice if this has actually worked out:
// my project -- top level of warnings
#pragma warnings_off
#include qt_headers
#pragma warnings_on
// my project -- top level of warnings
But I couldn't find anything like this above in GCC. All I found is:
#pragma GCC system_header
which should ignore any warnings. Maybe it is QT, maybe it is GCC --
anyway, it doesn't help -- I have still a lot of warnings from QT.
So... how to get rid of QT warnings, but maintain top warn-level for
the rest of the project.
Thanks in advance for your help.
have a nice day
bye bye
--
Maciej "MACiAS" Pilichowski http://bantu.fm.interia.pl/
M A R G O T --> http://www.margot.cad.pl/
automatyczny tłumacz (wczesna wersja rozwojowa) angielsko-polski
- How to lower warning level? [header wrappers, GCC],
Maciej Pilichowski <=