Bug 47300

Summary: -Wundef generates warning when compiling with /usr/include/sys/cdefs.h
Product: Base System Reporter: Brian Minard <bminard>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.7-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Brian Minard 2003-01-21 16:00:17 UTC
	Using the GCC compiler option -Wundef on source using the file
	/usr/include/sys/cdefs.h causes a compiler warning.

Fix: Apply the following patch:

How-To-Repeat: 	Use the named compiler option when compiling a program requiring said file.
Comment 1 Mike Barcroft freebsd_committer freebsd_triage 2003-02-07 00:36:06 UTC
State Changed
From-To: open->closed


Undefined preprocessor tokens are converted to 0 before evaluation, so 
this isn't a real problem.  I would advice against using -Wundef 
unless you don't mind false positives like this one.