www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/02/16:46:54

Sender: nate AT cartsys DOT com
Message-ID: <370539CD.5BE8B14B@cartsys.com>
Date: Fri, 02 Apr 1999 13:42:37 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Disabling/enabling warnings in source code
References: <01be7d43$ecad1700$LocalHost AT Laurynas>
Reply-To: djgpp AT delorie DOT com

Laurynas Biveinis wrote:

> is there any way to turn off/on warning messages in source code, not
> by compiler switches - like #pragma warn ... in other compilers?

No.  However, certain warnings can be avoided by changes to your
source.  Eg, an unused function argument can be retained without a
warning by casting to `void'.

In general, it's much better to fix your code to avoid the warning than
to disable the warning.

Is there some particular thing you want it to shut up about?
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019