Date: Sat, 8 Mar 2003 12:28:13 -0500 (EST) From: Garrett Wollman <wollman@lcs.mit.edu> To: Craig Rodrigues <rodrigc@attbi.com> Cc: freebsd-current@FreeBSD.ORG Subject: #warning must be protected by #if __GNUC__ in headers? Message-ID: <200303081728.h28HSDWM039984@khavrinen.lcs.mit.edu> In-Reply-To: <20030308161943.GA54921@attbi.com> References: <20030308161943.GA54921@attbi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sat, 8 Mar 2003 11:19:43 -0500, Craig Rodrigues <rodrigc@attbi.com> said: > Does the use of #warning need to be protected by > #if __GNUC__ in FreeBSD header files? No, it needs to be replaced by the standard `#error' directive instead. I asked portmgr to do a run on the portsd cluster with this change to look for ports that mistakenly include this file, but I never heard back and portmgr is now busy doing the packages for 4.8. `#if __GNUC__' wouldn't help matters; every preprocessor has to read and interpret every preprocessor directive (so that `#else' and `#endif' can be recognized). -GAWollman 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?200303081728.h28HSDWM039984>