This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]