Source-Changes-HG archive

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

[src/trunk]: src/sys/sys add linted to __USE()



details:   https://anonhg.NetBSD.org/src/rev/5fde1212ac17
branches:  trunk
changeset: 828682:5fde1212ac17
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 26 17:08:56 2017 +0000

description:
add linted to __USE()

diffstat:

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

diffs (18 lines):

diff -r c35de42570bb -r 5fde1212ac17 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h   Tue Dec 26 17:03:10 2017 +0000
+++ b/sys/sys/cdefs.h   Tue Dec 26 17:08:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs.h,v 1.134 2017/12/26 17:03:10 christos Exp $     */
+/*     $NetBSD: cdefs.h,v 1.135 2017/12/26 17:08:56 christos Exp $     */
 
 /* * Copyright (c) 1991, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -609,7 +609,7 @@
 #define __CASTV(__dt, __st)    __CAST(__dt, __CAST(void *, __st))
 #define __CASTCV(__dt, __st)   __CAST(__dt, __CAST(const void *, __st))
 
-#define __USE(a) ((void)(a))
+#define __USE(a) (/*LINTED*/(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