Module Name: src
Committed By: phx
Date: Fri Dec 12 15:57:30 UTC 2014
Modified Files:
src/sys/arch/bebox/stand/boot: fd.c siop.c vreset.c
Log Message:
Fix all warnings when compiling with gcc 4.8.
BeBox should be ready for 4.8 now.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/bebox/stand/boot/fd.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/bebox/stand/boot/siop.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/bebox/stand/boot/vreset.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/bebox/stand/boot/fd.c
diff -u src/sys/arch/bebox/stand/boot/fd.c:1.10 src/sys/arch/bebox/stand/boot/fd.c:1.11
--- src/sys/arch/bebox/stand/boot/fd.c:1.10 Thu Oct 14 06:39:52 2010
+++ src/sys/arch/bebox/stand/boot/fd.c Fri Dec 12 15:57:30 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.10 2010/10/14 06:39:52 kiyohara Exp $ */
+/* $NetBSD: fd.c,v 1.11 2014/12/12 15:57:30 phx Exp $ */
/*-
* Copyright (C) 1997-1998 Kazuki Sakamoto ([email protected])
@@ -297,7 +297,7 @@ fdstrategy(void *devdata, int func, dadd
int ctlr = un->ctlr;
int unit = un->unit;
int *stat = un->stat;
- long nblock, blknum;
+ long blknum;
int fd_skip = 0;
u_char *cbuf = (u_char *)buf;
@@ -306,7 +306,6 @@ fdstrategy(void *devdata, int func, dadd
}
fdDriveStatus(ctlr, unit, 0, stat);
- nblock = un->un_type->maxseccount;
sectrac = un->un_type->seccount; /* sector per track */
*rsize = 0;
Index: src/sys/arch/bebox/stand/boot/siop.c
diff -u src/sys/arch/bebox/stand/boot/siop.c:1.4 src/sys/arch/bebox/stand/boot/siop.c:1.5
--- src/sys/arch/bebox/stand/boot/siop.c:1.4 Sat Jun 14 20:50:12 2014
+++ src/sys/arch/bebox/stand/boot/siop.c Fri Dec 12 15:57:30 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: siop.c,v 1.4 2014/06/14 20:50:12 phx Exp $ */
+/* $NetBSD: siop.c,v 1.5 2014/12/12 15:57:30 phx Exp $ */
/*
* Copyright (c) 2010 KIYOHARA Takashi
* All rights reserved.
@@ -625,7 +625,7 @@ siop_start(struct siop_adapter *adp, str
{
struct siop_xfer *siop_xfer = adp->xfer;
uint32_t dsa, *script = adp->script;
- int target, lun, slot;
+ int slot;
void *scriptaddr = (void *)local_to_PCI((u_long)script);
const int siop_common_xfer_size = sizeof(struct siop_common_xfer);
@@ -652,8 +652,6 @@ siop_start(struct siop_adapter *adp, str
} else {
slot++;
}
- target = xs->target;
- lun = xs->lun;
/*
* find a free scheduler slot and load it.
*/
Index: src/sys/arch/bebox/stand/boot/vreset.c
diff -u src/sys/arch/bebox/stand/boot/vreset.c:1.13 src/sys/arch/bebox/stand/boot/vreset.c:1.14
--- src/sys/arch/bebox/stand/boot/vreset.c:1.13 Fri Oct 15 20:01:03 2010
+++ src/sys/arch/bebox/stand/boot/vreset.c Fri Dec 12 15:57:30 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: vreset.c,v 1.13 2010/10/15 20:01:03 he Exp $ */
+/* $NetBSD: vreset.c,v 1.14 2014/12/12 15:57:30 phx Exp $ */
/*
* Copyright (C) 1995-1997 Gary Thomas ([email protected])
@@ -547,8 +547,8 @@ delayLoop(int k)
static void
writeAttr(u_char index, u_char data, u_char videoOn)
{
- u_char v;
- v = inb(0x3da); /* reset attr. address toggle */
+
+ (void)inb(0x3da); /* reset attr. address toggle */
if (videoOn)
outb(0x3c0, (index & 0x1F) | 0x20);
else