Bug 13846

Summary: [PATCH] remove some kernel compile warnings
Product: Base System Reporter: Gregory Bond <gnb>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Gregory Bond 1999-09-20 04:00:01 UTC
This patch silences some kernel compile warnings.  Some of these warnings
are dependent on kernel config options
	not I585_CPU
	MFS and not MFS_ROOT

This patch superceeds two PRs I previously submitted (9877 and 9878) and
should be more usable now that I have a local CVS repository!

How-To-Repeat: 
cd /usr/src/sys/compile/KERNEL && make >& errs && grep ':' errs
Comment 1 Bill Fumerola 1999-09-20 18:59:39 UTC
On Mon, 20 Sep 1999, Gregory Bond wrote:

> -	u_int regs[4], nreg;
> +	u_int regs[4];
> +	u_int nreg = 0; /* Used iff strcmp(cpu_vendor,"AuthenticAMD") == 0 */
> +

We don't initialize variables in thier declaration, see style(9)

> -	u_int64_t old_tsc;
> +	u_int64_t old_tsc = 0; /* used iff tsc_present */

Ditto.



-- 
- bill fumerola - billf@chc-chimes.com - BF1560 - computer horizons corp -
- ph:(800) 252-2421 - bfumerol@computerhorizons.com - billf@FreeBSD.org  -
Comment 2 Gregory Bond 2000-09-20 00:28:16 UTC
This PR can be closed as 3.x is now (close to) End-of-Life.
Comment 3 ru freebsd_committer freebsd_triage 2000-09-20 08:37:07 UTC
State Changed
From-To: open->closed

Closed per originator's request.