Module Name:    src
Committed By:   christos
Date:           Tue Dec 26 17:08:56 UTC 2017

Modified Files:
        src/sys/sys: cdefs.h

Log Message:
add linted to __USE()


To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.135 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.134 src/sys/sys/cdefs.h:1.135
--- src/sys/sys/cdefs.h:1.134	Tue Dec 26 12:03:10 2017
+++ src/sys/sys/cdefs.h	Tue Dec 26 12:08:56 2017
@@ -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)

Reply via email to