Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/dev fix -Werror=unused-but-set-variable compile...
details: https://anonhg.NetBSD.org/src/rev/005547994fe6
branches: trunk
changeset: 330058:005547994fe6
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Jun 19 18:01:18 2014 +0000
description:
fix -Werror=unused-but-set-variable compile error
diffstat:
sys/arch/sh3/dev/sci.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r a212dbad0ed1 -r 005547994fe6 sys/arch/sh3/dev/sci.c
--- a/sys/arch/sh3/dev/sci.c Thu Jun 19 16:54:40 2014 +0000
+++ b/sys/arch/sh3/dev/sci.c Thu Jun 19 18:01:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sci.c,v 1.58 2014/03/16 05:20:25 dholland Exp $ */
+/* $NetBSD: sci.c,v 1.59 2014/06/19 18:01:18 msaitoh Exp $ */
/*-
* Copyright (C) 1999 T.Horiuchi and SAITOH Masanobu. All rights reserved.
@@ -93,7 +93,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sci.c,v 1.58 2014/03/16 05:20:25 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sci.c,v 1.59 2014/06/19 18:01:18 msaitoh Exp $");
#include "opt_kgdb.h"
#include "opt_sci.h"
@@ -599,7 +599,6 @@
sci_iflush(struct sci_softc *sc)
{
unsigned char err_c;
- volatile unsigned char c;
if (((err_c = SHREG_SCSSR)
& (SCSSR_RDRF | SCSSR_ORER | SCSSR_FER | SCSSR_PER)) != 0) {
@@ -609,7 +608,7 @@
return;
}
- c = SHREG_SCRDR;
+ (void)SHREG_SCRDR;
SHREG_SCSSR &= ~SCSSR_RDRF;
}
Home |
Main Index |
Thread Index |
Old Index