From owner-freebsd-current Tue Feb 11 17:11:35 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 1E1E437B409 for ; Tue, 11 Feb 2003 17:11:33 -0800 (PST) Received: from smtp1.rpi.edu (smtp1.server.rpi.edu [128.113.2.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 280A143F93 for ; Tue, 11 Feb 2003 17:11:32 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp1.rpi.edu (8.12.7/8.12.7) with ESMTP id h1C1BUrp023317; Tue, 11 Feb 2003 20:11:30 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200302120001.h1C01Bet019747@khavrinen.lcs.mit.edu> References: <3E46A15A.3090909@gmx.net> <200302120001.h1C01Bet019747@khavrinen.lcs.mit.edu> Date: Tue, 11 Feb 2003 20:11:29 -0500 To: Garrett Wollman , Marcin Dalecki From: Garance A Drosihn Subject: Re: C conformance. Cc: freebsd-current@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-RPI-Spam-Score: -1.3 () IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_03_05 X-Scanned-By: MIMEDefang 2.28 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 At 7:01 PM -0500 2/11/03, Garrett Wollman wrote: >< said: > > > Trying to use a compiler different from GCC I have found the > > folowing error: > > "/usr/include/sys/syslimits.h", line 42: Error: > > [ISO 6.8]: Unknown preprocessing directive, '#warning'. > >It should probably be a #error instead. I remember running into this on some cross-platform program I dabble with. As near as I can tell, some compilers recognize '#warn', and others want '#warning'. And one of them would always complain about whichever one it did not like, even if you tried to hide it within a #if/#endif. This is annoying when you have something that you want to be a compile-time WARNING and not a compile-time error... -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message