From owner-freebsd-current Sun Feb 9 23:33:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F239537B405 for ; Sun, 9 Feb 2003 23:33:55 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FF3243FCB for ; Sun, 9 Feb 2003 23:32:35 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0103.cvx40-bradley.dialup.earthlink.net ([216.244.42.103] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18i8Qb-0006aZ-00; Sun, 09 Feb 2003 23:32:33 -0800 Message-ID: <3E475540.41AD46E4@mindspring.com> Date: Sun, 09 Feb 2003 23:31:12 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Munish Chopra Cc: freebsd-current@freebsd.org Subject: Re: C conformance. References: <20030210043037.GA33669@opiate.thirteenandtwo.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4882f40c813b5ea6af202451289ceb45493caf27dac41a8fd350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Munish Chopra wrote: > >It is an ANSI compliant preprocessor directive. Please use an ANSI > >compliant compiler. > > I'd also be curious to know in which version of the ANSI standard you > have found #warning. I certainly doesn't appear in mine. I said that the use of the directive was compliant, not that the directive was standardized. As to the version of the standard, try ANSI X3J11, unless you have a different online version of the standards document available for public use that you want to point me at to language-lawyer to prove that the preprocessor should not be doing syntax checking on statements that are indicated by preprocessor statements to not be compiled. What does the compiler you are using do when I say: #ifdef absurd_token absurd_token #endif or #ifdef absurd_token #absurd_token #endif Neither one of these should cause a warning with an ANSI X3J11 compliant compiler or preprocessor, or an ISO C-99 compliant compiler or preprocessor, for that matter. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message