Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/imx Delete unused variables for new gcc.



details:   https://anonhg.NetBSD.org/src/rev/b2ba9c7ff0ba
branches:  trunk
changeset: 797658:b2ba9c7ff0ba
user:      hkenken <hkenken%NetBSD.org@localhost>
date:      Fri Jul 25 06:36:16 2014 +0000

description:
Delete unused variables for new gcc.

diffstat:

 sys/arch/arm/imx/imxuart.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 947138964c41 -r b2ba9c7ff0ba sys/arch/arm/imx/imxuart.c
--- a/sys/arch/arm/imx/imxuart.c        Fri Jul 25 04:09:58 2014 +0000
+++ b/sys/arch/arm/imx/imxuart.c        Fri Jul 25 06:36:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imxuart.c,v 1.11 2014/03/16 05:20:23 dholland Exp $ */
+/* $NetBSD: imxuart.c,v 1.12 2014/07/25 06:36:16 hkenken Exp $ */
 
 /*
  * Copyright (c) 2009, 2010  Genetec Corporation.  All rights reserved.
@@ -96,7 +96,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.11 2014/03/16 05:20:23 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.12 2014/07/25 06:36:16 hkenken Exp $");
 
 #include "opt_imxuart.h"
 #include "opt_ddb.h"
@@ -2223,7 +2223,7 @@
        c = 0xff & bus_space_read_4(iot, ioh, IMX_URXD);
 
        {
-               int cn_trapped = 0; /* unused */
+               int __attribute__((__unused__))cn_trapped = 0; /* unused */
 #ifdef DDB
                extern int db_active;
                if (!db_active)
@@ -2246,7 +2246,7 @@
        if (!READAHEAD_IS_FULL() &&
            ((usr2 = bus_space_read_4(iot, ioh, IMX_USR2)) & IMX_USR2_RDR)) {
 
-               int cn_trapped = 0;
+               int __attribute__((__unused__))cn_trapped = 0;
                cin = bus_space_read_4(iot, ioh, IMX_URXD);
                cn_check_magic(dev, cin & 0xff, imxuart_cnm_state);
                imxuart_readahead_in = (imxuart_readahead_in + 1) &



Home | Main Index | Thread Index | Old Index