Mark potentially unused variables

This commit is contained in:
martin 2013-09-15 16:08:28 +00:00
parent 7dbdb14bec
commit 4dc1fa2759
1 changed files with 4 additions and 4 deletions

View File

@ -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 @@ void
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 @@ wdcprobe1(struct ata_channel *chp, int poll)
{
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;