This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
turn off warnings in gcc on linux
- From: "Yehezkel Horowitz" <horowity at checkpoint dot com>
- To: <gcc-patches at gcc dot gnu dot org>, <gcc-help at gcc dot gnu dot org>
- Date: Tue, 12 Sep 2006 09:07:57 +0300
- Subject: turn off warnings in gcc on linux
Hello,
I search a way so I could operate the -Werror flag in gcc on linux,
The motivation is to enforce regarding to warnings
(if they stay just warnings we sometime ignore them).
My problem is that sometime there is specific warning that can't be resolve,
so I want to ignore it.
On Windows I have the way of
#ifdef WIN32
#pragma warning (disable: #num of the warning)
#endif
.The code generates the warning.
#ifdef WIN32
#pragma warning (default: #num of the warning)
#endif
Did any body know similar way that can work on Linux?
(I know you are working on "#pragma diagnostic" that will be available in
the future, but I search a way to do it right now).
Thanks in advance
Yehezkel