This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Turning warning off
- From: "Young, Michael" <Michael dot Young at paetec dot com>
- To: "Kaz Kylheku" <kaz at zeugmasystems dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Thu, 31 Aug 2006 15:45:14 -0400
- Subject: RE: Turning warning off
I went to look in the documentation for this, because I am interested, too.
I did see section 3.8 - "Options to Request or Suppress Warnings", but I did not find exactly what I was hoping for. Specifically, I'm looking for a way to turn off a specific warning inline, with the ability to restore it again - analogous to the #pragma warning directive supported in MS VC++ (see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_predir_warning.asp for details).
I did a web search for this, too, and found that others have asked similar questions, but never found a definitive answer. Based on this, I would assume that the answer is "no, the functionality you're looking for is not implemented in gcc".
Does anyone know anything contrary to this?