Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Mar 2003 11:19:43 -0500
From:      Craig Rodrigues <rodrigc@attbi.com>
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>

next in thread | raw e-mail | index | archive | help
Hi,

In <sys/syslimits.h>, 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 <machine/limits.h>.

Some other header files check for __GNUC__ before using #warning,
such as <sys/ioctl.h>, but <sys/dkstat.h> does not.

Thanks.
-- 
Craig Rodrigues        
http://home.attbi.com/~rodrigc
rodrigc@attbi.com

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?20030308161943.GA54921>