From owner-freebsd-hackers Sat Mar 8 8:18:28 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49E1837B401; Sat, 8 Mar 2003 08:18:27 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66DF643F3F; Sat, 8 Mar 2003 08:18:26 -0800 (PST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.7/8.12.7) with ESMTP id h28GJhuB054950; Sat, 8 Mar 2003 11:19:43 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.7/8.12.7/Submit) id h28GJhbM054949; Sat, 8 Mar 2003 11:19:43 -0500 (EST) Date: Sat, 8 Mar 2003 11:19:43 -0500 From: Craig Rodrigues To: freebsd-hackers@freebsd.org Cc: freebsd-current@freebsd.org Subject: #warning must be protected by #if __GNUC__ in headers? Message-ID: <20030308161943.GA54921@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, In , I see: #if __GNUC__ #warning "No user-serviceable parts inside." #endif Does the use of #warning need to be protected by #if __GNUC__ in FreeBSD header files? I am working on something similar for . Some other header files check for __GNUC__ before using #warning, such as , but does not. Thanks. -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message