From f67ebcf88411aa64212d558b543f6710b3173b93 Mon Sep 17 00:00:00 2001 From: dim Date: Mon, 9 Feb 2015 07:49:41 +0000 Subject: [PATCH] MFC r278222: Mark typedefs for manually implementing _Static_assert() as unused, so they won't show up unecessarily for -Wunused-local-typedefs. git-svn-id: svn://svn.freebsd.org/base/stable/10@278436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/sys/cdefs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index d12895973..f13dab1b6 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -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 -- 2.45.0