Bug 993 - g++ complains about /usr/include/machine/cpufunc.h
Summary: g++ complains about /usr/include/machine/cpufunc.h
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 2.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-02-03 21:00 UTC by smp
Modified: 1998-04-13 09:43 UTC (History)
0 users

See Also:


Attachments
file.diff (933 bytes, patch)
1996-02-03 21:00 UTC, smp
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description smp 1996-02-03 21:00:02 UTC
	cpufunc.h has 2 lines that generate 'noise' on every compile:

/usr/include/machine/cpufunc.h: In function `void insque(void *, void *)':
In file included from ds1820.c:23:
/usr/include/machine/cpufunc.h:310: warning: ANSI C++ forbids implicit conversion from `void *' in initialization
/usr/include/machine/cpufunc.h:310: warning: ANSI C++ forbids implicit conversion from `void *' in initialization
/usr/include/machine/cpufunc.h: In function `void remque(void *)':
/usr/include/machine/cpufunc.h:321: warning: ANSI C++ forbids implicit conversion from `void *' in initialization

Fix: apply the following patch to /usr/include/machine/cpufunc.h:
How-To-Repeat: 
	compile a program with g++ that includes
	/usr/include/machine/cpufunc.h
Comment 1 Wolfram Schneider freebsd_committer freebsd_triage 1996-09-25 01:14:26 UTC
State Changed
From-To: open->analyzed

We are now update to gcc 2.7.2  


Comment 2 Wolfram Schneider freebsd_committer freebsd_triage 1996-09-25 01:14:26 UTC
Responsible Changed
From-To: freebsd-bugs->peter

Comment 3 Bruce Evans freebsd_committer freebsd_triage 1996-09-25 04:25:56 UTC
State Changed
From-To: analyzed->suspended

This was fixed before it was reported, in rev.1.42 of cpufunc.h, 
but only in -current.  I'm not happy with closing PR's that 
still apply to -stable. 
Comment 4 Poul-Henning Kamp freebsd_committer freebsd_triage 1998-04-13 09:42:56 UTC
State Changed
From-To: suspended->closed

I am. 


Comment 5 Poul-Henning Kamp freebsd_committer freebsd_triage 1998-04-13 09:42:56 UTC
Responsible Changed
From-To: peter->freebsd-bugs