Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amiga/amiga build fix for M68020, M68030. gcc compla...



details:   https://anonhg.NetBSD.org/src/rev/45df8168617a
branches:  trunk
changeset: 446438:45df8168617a
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Wed Dec 05 09:34:46 2018 +0000

description:
build fix for M68020,M68030. gcc complains about the local typedef that
isn't used.

diffstat:

 sys/arch/amiga/amiga/machdep.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 22758d16e20a -r 45df8168617a sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c    Wed Dec 05 09:20:18 2018 +0000
+++ b/sys/arch/amiga/amiga/machdep.c    Wed Dec 05 09:34:46 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.249 2018/03/05 02:39:06 christos Exp $   */
+/*     $NetBSD: machdep.c,v 1.250 2018/12/05 09:34:46 mlelstv Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -50,7 +50,7 @@
 #include "empm.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.249 2018/03/05 02:39:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.250 2018/12/05 09:34:46 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -679,10 +679,9 @@
 void
 initcpu(void)
 {
-       typedef void trapfun(void);
-
        /* XXX should init '40 vecs here, too */
 #if defined(M68060) || defined(M68040) || defined(DRACO) || defined(FPU_EMULATE)
+       typedef void trapfun(void);
        extern trapfun *vectab[256];
 #endif
 



Home | Main Index | Thread Index | Old Index