Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/samsung Make it compile without DIAGNOSTIC



details:   https://anonhg.NetBSD.org/src/rev/9ba20b2df542
branches:  trunk
changeset: 331833:9ba20b2df542
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Tue Aug 26 11:45:49 2014 +0000

description:
Make it compile without DIAGNOSTIC

diffstat:

 sys/arch/arm/samsung/exynos_i2c.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 330c41a26eae -r 9ba20b2df542 sys/arch/arm/samsung/exynos_i2c.c
--- a/sys/arch/arm/samsung/exynos_i2c.c Tue Aug 26 11:10:02 2014 +0000
+++ b/sys/arch/arm/samsung/exynos_i2c.c Tue Aug 26 11:45:49 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exynos_i2c.c,v 1.1 2014/05/21 12:19:59 reinoud Exp $ */
+/*     $NetBSD: exynos_i2c.c,v 1.2 2014/08/26 11:45:49 reinoud Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #include "exynos_iic.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exynos_i2c.c,v 1.1 2014/05/21 12:19:59 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exynos_i2c.c,v 1.2 2014/08/26 11:45:49 reinoud Exp $");
 
 
 #include <sys/param.h>
@@ -108,8 +108,10 @@
 static int
 exynos_iic_match(device_t self, cfdata_t cf, void *aux)
 {
+#ifdef DIAGNOSTIC
        struct exyo_attach_args *exyoaa = aux;
        struct exyo_locators *loc = &exyoaa->exyo_loc;
+#endif
        int i;
 
        /* no locators expected */



Home | Main Index | Thread Index | Old Index