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/10/sys/sys/cdefs.h
Directory Properties:
  stable/10/   (props changed)

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

Modified: stable/10/sys/sys/cdefs.h
==============================================================================
--- stable/10/sys/sys/cdefs.h   Mon Feb  9 07:45:46 2015        (r278435)
+++ stable/10/sys/sys/cdefs.h   Mon Feb  9 07:49:41 2015        (r278436)
@@ -289,7 +289,8 @@
 #elif defined(__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
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to