From 91b394f423a15949ad3d14b0ef89bd7c43f844c8 Mon Sep 17 00:00:00 2001 From: Robert Lubos Date: Mon, 26 Jun 2017 21:42:38 +0200 Subject: [PATCH] Modify IAR OT_UNUSED_VARIABLE macro. (#1936) --- include/openthread/platform/toolchain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openthread/platform/toolchain.h b/include/openthread/platform/toolchain.h index a2f6b0bf5..7506e60cc 100644 --- a/include/openthread/platform/toolchain.h +++ b/include/openthread/platform/toolchain.h @@ -215,7 +215,7 @@ extern "C" { #define OT_UNUSED_VARIABLE(VARIABLE) \ do \ { \ - if (VARIABLE) {} \ + if (&VARIABLE == NULL) {} \ } while (false) #define OT_UNREACHABLE_CODE(CODE) \