Source-Changes-HG archive

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

[src/trunk]: src/sys/sys introduce __USE(variable) that uses a variable to sq...



details:   https://anonhg.NetBSD.org/src/rev/590263938411
branches:  trunk
changeset: 790534:590263938411
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 16 19:31:43 2013 +0000

description:
introduce __USE(variable) that uses a variable to squash unused variable
warnings.

diffstat:

 sys/sys/cdefs.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 953b0817b11c -r 590263938411 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h   Wed Oct 16 18:55:31 2013 +0000
+++ b/sys/sys/cdefs.h   Wed Oct 16 19:31:43 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs.h,v 1.112 2013/09/15 13:01:37 martin Exp $       */
+/*     $NetBSD: cdefs.h,v 1.113 2013/10/16 19:31:43 christos Exp $     */
 
 /*
  * Copyright (c) 1991, 1993
@@ -550,6 +550,8 @@
 #define __CAST(__dt, __st)     ((__dt)(__st))
 #endif
 
+#define __USE(a) ((void)(a))
+
 #define __type_mask(t) (/*LINTED*/sizeof(t) < sizeof(intmax_t) ? \
     (~((1ULL << (sizeof(t) * NBBY)) - 1)) : 0ULL)
 



Home | Main Index | Thread Index | Old Index