Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Mark potentially unused variables



details:   https://anonhg.NetBSD.org/src/rev/041b146a668a
branches:  trunk
changeset: 790071:041b146a668a
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 16:08:28 2013 +0000

description:
Mark potentially unused variables

diffstat:

 sys/dev/ic/wdc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 0d8d8e98311f -r 041b146a668a sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c  Sun Sep 15 15:57:26 2013 +0000
+++ b/sys/dev/ic/wdc.c  Sun Sep 15 16:08:28 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc.c,v 1.278 2013/04/03 17:15:07 bouyer Exp $ */
+/*     $NetBSD: wdc.c,v 1.279 2013/09/15 16:08:28 martin Exp $ */
 
 /*
  * Copyright (c) 1998, 2001, 2003 Manuel Bouyer.  All rights reserved.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.278 2013/04/03 17:15:07 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.279 2013/09/15 16:08:28 martin Exp $");
 
 #include "opt_ata.h"
 #include "opt_wdc.h"
@@ -204,7 +204,7 @@
 wdc_sataprobe(struct ata_channel *chp)
 {
        struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp);
-       uint8_t st = 0, sc, sn, cl, ch;
+       uint8_t st = 0, sc __unused, sn __unused, cl, ch;
        int i, s;
 
        KASSERT(chp->ch_ndrives == 0 || chp->ch_drive != NULL);
@@ -487,7 +487,7 @@
 {
        struct wdc_softc *wdc = CHAN_TO_WDC(chp);
        struct wdc_regs *wdr = &wdc->regs[chp->ch_channel];
-       u_int8_t st0 = 0, st1 = 0, sc, sn, cl, ch;
+       u_int8_t st0 = 0, st1 = 0, sc __unused, sn __unused, cl, ch;
        u_int8_t ret_value = 0x03;
        u_int8_t drive;
        int s;



Home | Main Index | Thread Index | Old Index