Subject: port-i386/2882: i386 kernel fails to compile without COMPAT_10
To: None <gnats-bugs@gnats.netbsd.org>
From: Luke Mewburn <lukem@supp.cpr.itg.telstra.com.au>
List: netbsd-bugs
Date: 10/22/1996 12:05:11
>Number:         2882
>Category:       port-i386
>Synopsis:       i386 kernel fails to compile without COMPAT_10
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   lm
>Arrival-Date:   Mon Oct 21 19:20:00 1996
>Last-Modified:
>Originator:     Luke Mewburn
>Organization:
Werj
>Release:        current-961021
>Environment:
>Description:
	i have a kernel w/o COMPAT_10, using pccons.
	it won't compile with -Werror due to an unused variable

>How-To-Repeat:
	remove COMPAT_10.
	compile an i386 kernel

>Fix:
	apply this to /sys/arch/i386/isa/pccons.c:
	(I think this is the change - I did it at home, I'm now at
	work. This patch is from memory :)


*** /ftp/pub/NetBSD/NetBSD-current/src/sys/arch/i386/isa/pccons.c	Tue Oct 15 02:09:00 1996
--- pccons.c	Tue Oct 22 12:02:26 1996
***************
*** 1664,1670 ****
--- 1664,1672 ----
  void
  pc_xmode_on()
  {
+ #ifdef COMPAT_10
  	struct trapframe *fp;
+ #endif
  
  	if (pc_xmode)
  		return;
>Audit-Trail:
>Unformatted: