svn commit: r278436 - in stable: 10/sys/sys 9/sys/sys

Dimitry Andric dim at FreeBSD.org
Mon Feb 9 07:49:42 UTC 2015


Author: dim
Date: Mon Feb  9 07:49:41 2015
New Revision: 278436
URL: https://svnweb.freebsd.org/changeset/base/278436

Log:
  MFC r278222:
  
  Mark typedefs for manually implementing _Static_assert() as unused, so
  they won't show up unecessarily for -Wunused-local-typedefs.

Modified:
  stable/9/sys/sys/cdefs.h
Directory Properties:
  stable/9/sys/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/sys/sys/cdefs.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/9/sys/sys/cdefs.h
==============================================================================
--- stable/9/sys/sys/cdefs.h	Mon Feb  9 07:45:46 2015	(r278435)
+++ stable/9/sys/sys/cdefs.h	Mon Feb  9 07:49:41 2015	(r278436)
@@ -250,7 +250,8 @@
 #ifdef __COUNTER__
 #define	_Static_assert(x, y)	__Static_assert(x, __COUNTER__)
 #define	__Static_assert(x, y)	___Static_assert(x, y)
-#define	___Static_assert(x, y)	typedef char __assert_ ## y[(x) ? 1 : -1]
+#define	___Static_assert(x, y)	typedef char __assert_ ## y[(x) ? 1 : -1] \
+				__unused
 #else
 #define	_Static_assert(x, y)	struct __hack
 #endif


More information about the svn-src-all mailing list