Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcsh/dev fix unused variable warnings



details:   https://anonhg.NetBSD.org/src/rev/8e74eaac5f20
branches:  trunk
changeset: 791221:8e74eaac5f20
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 09 02:54:11 2013 +0000

description:
fix unused variable warnings

diffstat:

 sys/arch/hpcsh/dev/hd64461/hd64461_machdep.c |   8 ++++----
 sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c   |  10 +++++-----
 sys/arch/hpcsh/dev/psh3lcd.c                 |   8 ++++----
 3 files changed, 13 insertions(+), 13 deletions(-)

diffs (98 lines):

diff -r b7f992e34556 -r 8e74eaac5f20 sys/arch/hpcsh/dev/hd64461/hd64461_machdep.c
--- a/sys/arch/hpcsh/dev/hd64461/hd64461_machdep.c      Sat Nov 09 02:44:52 2013 +0000
+++ b/sys/arch/hpcsh/dev/hd64461/hd64461_machdep.c      Sat Nov 09 02:54:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hd64461_machdep.c,v 1.6 2011/07/19 15:30:52 dyoung Exp $       */
+/*     $NetBSD: hd64461_machdep.c,v 1.7 2013/11/09 02:54:11 christos Exp $     */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hd64461_machdep.c,v 1.6 2011/07/19 15:30:52 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hd64461_machdep.c,v 1.7 2013/11/09 02:54:11 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -74,10 +74,10 @@
        r &= ~HD64461_PCCSCR_VCC1;                                      \
        hd64461_reg_write_1(scr, r);                                    \
 } while (/*CONSTCOND*/0)
-       bus_addr_t isr, gcr, scr;
+       bus_addr_t gcr, scr;
        uint8_t r;
        
-       isr = HD64461_PCCISR(ch);
+       (void)HD64461_PCCISR(ch);
        gcr = HD64461_PCCGCR(ch);
        scr = HD64461_PCCSCR(ch);
 
diff -r b7f992e34556 -r 8e74eaac5f20 sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c
--- a/sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c        Sat Nov 09 02:44:52 2013 +0000
+++ b/sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c        Sat Nov 09 02:54:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hd64461pcmcia.c,v 1.50 2013/10/13 06:55:34 riz Exp $   */
+/*     $NetBSD: hd64461pcmcia.c,v 1.51 2013/11/09 02:54:11 christos Exp $      */
 
 /*-
  * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hd64461pcmcia.c,v 1.50 2013/10/13 06:55:34 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hd64461pcmcia.c,v 1.51 2013/11/09 02:54:11 christos Exp $");
 
 #include "opt_hd64461pcmcia.h"
 
@@ -251,7 +251,7 @@
 {
        struct hd64461_attach_args *ha = aux;
        struct hd64461pcmcia_softc *sc;
-       int error;
+       int error __diagused;
 
        sc = device_private(self);
        sc->sc_dev = self;
@@ -893,11 +893,11 @@
 {
        uint8_t r;
        uint16_t r16;
-       bus_addr_t scr, gcr, isr;
+       bus_addr_t gcr, isr;
 
        isr = HD64461_PCCISR(channel);
        gcr = HD64461_PCCGCR(channel);
-       scr = HD64461_PCCSCR(channel);
+       (void)HD64461_PCCSCR(channel);
 
        /*
         * XXX to access attribute memory, this is required.
diff -r b7f992e34556 -r 8e74eaac5f20 sys/arch/hpcsh/dev/psh3lcd.c
--- a/sys/arch/hpcsh/dev/psh3lcd.c      Sat Nov 09 02:44:52 2013 +0000
+++ b/sys/arch/hpcsh/dev/psh3lcd.c      Sat Nov 09 02:54:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: psh3lcd.c,v 1.6 2012/02/12 16:34:08 matt Exp $ */
+/*     $NetBSD: psh3lcd.c,v 1.7 2013/11/09 02:54:11 christos Exp $     */
 /*
  * Copyright (c) 2005 KIYOHARA Takashi
  * All rights reserved.
@@ -249,13 +249,13 @@
 psh3lcd_attach(device_t parent __unused, device_t self, void *aux __unused)
 {
        struct psh3lcd_softc *sc = device_private(self);
-       uint8_t bcr0, bcr1, bcr2;
+       uint8_t bcr0;
 
        sc->sc_dev = self;
 
        bcr0 = _reg_read_1(PSH3LCD_BRIGHTNESS_REG0);
-       bcr1 = _reg_read_1(PSH3LCD_BRIGHTNESS_REG1);
-       bcr2 = _reg_read_1(PSH3LCD_BRIGHTNESS_REG2);
+       (void)_reg_read_1(PSH3LCD_BRIGHTNESS_REG1);
+       (void)_reg_read_1(PSH3LCD_BRIGHTNESS_REG2);
        if (bcr0 == 0) {
                sc->sc_set_brightness = psh3lcd_xx0_set_brightness;
                sc->sc_brightness = psh3lcd_xx0_bcd_get();



Home | Main Index | Thread Index | Old Index