Module Name: src Committed By: msaitoh Date: Thu Jun 19 18:01:18 UTC 2014
Modified Files: src/sys/arch/sh3/dev: sci.c Log Message: fix -Werror=unused-but-set-variable compile error To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/arch/sh3/dev/sci.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/sh3/dev/sci.c diff -u src/sys/arch/sh3/dev/sci.c:1.58 src/sys/arch/sh3/dev/sci.c:1.59 --- src/sys/arch/sh3/dev/sci.c:1.58 Sun Mar 16 05:20:25 2014 +++ src/sys/arch/sh3/dev/sci.c Thu Jun 19 18:01:18 2014 @@ -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 @@ void 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 @@ sci_iflush(struct sci_softc *sc) return; } - c = SHREG_SCRDR; + (void)SHREG_SCRDR; SHREG_SCSSR &= ~SCSSR_RDRF; }