Subject: port-sun3/1928: bogus declaration of panic in sun3/stand/libsa/panic.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Jason R. Thorpe <thorpej@SJ.Xenotropic.COM>
List: netbsd-bugs
Date: 01/11/1996 08:22:17
>Number:         1928
>Category:       port-sun3
>Synopsis:       bogus declaration of panic in sun3/stand/libsa/panic.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 11 11:50:02 1996
>Last-Modified:
>Originator:     
>Organization:
Just me and my collection of obsolete computer gear(s).
>Release:        NetBSD 1.1A, Jan 10, 1996
>Environment:
	
System: NetBSD ovation 1.1 NetBSD 1.1 (OVATION) #44: Sun Dec 10 17:55:35 PST 1995 thorpej@ovation:/tmp_mnt/basalt/work/netbsd/src/sys/arch/sun3/compile/OVATION sun3


>Description:
	The declaration of panic() in the sun3 libsa no longer matches
	that in sys/lib/libsa/stand.h
>How-To-Repeat:
	Try to build the sun3 boot code.
>Fix:
	Change the `volatile' to `__dead'.  Here's the really simple patch.

Index: panic.c
===================================================================
RCS file: /usr/og/devsrc/netbsd/src/sys/arch/sun3/stand/libsa/panic.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 panic.c
*** panic.c	1995/12/19 17:27:25	1.1.1.1
--- panic.c	1996/01/11 16:14:03
***************
*** 4,10 ****
  
  extern volatile void abort();
  
! volatile void
  panic(const char *fmt, ...)
  {
      va_list ap;
--- 4,10 ----
  
  extern volatile void abort();
  
! __dead void
  panic(const char *fmt, ...)
  {
      va_list ap;
>Audit-Trail:
>Unformatted: