From f9a980108feff422ad1ee1bc0bb6f1613fa680d3 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Tue, 8 Aug 2017 14:41:59 +0300 Subject: [PATCH] 8608 debug.h: CTASSERT will trigger variable unused errors Reviewed by: Yuri Pankov Reviewed by: Igor Kozhukhov Approved by: Dan McDonald --- usr/src/uts/common/sys/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/uts/common/sys/debug.h b/usr/src/uts/common/sys/debug.h index 05e62aa1a1..645716cd9c 100644 --- a/usr/src/uts/common/sys/debug.h +++ b/usr/src/uts/common/sys/debug.h @@ -134,7 +134,7 @@ _NOTE(CONSTCOND) } while (0) #define CTASSERT(x) _CTASSERT(x, __LINE__) #define _CTASSERT(x, y) __CTASSERT(x, y) #define __CTASSERT(x, y) \ - typedef char __compile_time_assertion__ ## y [(x) ? 1 : -1] + typedef char __compile_time_assertion__ ## y [(x) ? 1 : -1] __unused #ifdef _KERNEL -- 2.11.4.GIT