Module Name:    src
Committed By:   christos
Date:           Wed Oct 16 19:31:43 UTC 2013

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 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.112 src/sys/sys/cdefs.h:1.113
--- src/sys/sys/cdefs.h:1.112	Sun Sep 15 09:01:37 2013
+++ src/sys/sys/cdefs.h	Wed Oct 16 15:31:43 2013
@@ -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)
 

Reply via email to