Date: Tue, 11 Feb 2003 20:11:29 -0500 From: Garance A Drosihn <drosih@rpi.edu> To: Garrett Wollman <wollman@lcs.mit.edu>, Marcin Dalecki <mdcki@gmx.net> Cc: freebsd-current@FreeBSD.ORG Subject: Re: C conformance. Message-ID: <p05200f0eba6f4f0284cb@[128.113.24.47]> In-Reply-To: <200302120001.h1C01Bet019747@khavrinen.lcs.mit.edu> References: <3E46A15A.3090909@gmx.net> <200302120001.h1C01Bet019747@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
At 7:01 PM -0500 2/11/03, Garrett Wollman wrote: ><<On Sun, 09 Feb 2003, Marcin Dalecki <mdcki@gmx.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05200f0eba6f4f0284cb>