From 291f4abc0ef0e2325eb275de60fb946c8d93902f Mon Sep 17 00:00:00 2001 From: Mike Fenelon Date: Tue, 7 Mar 2017 15:56:12 -0800 Subject: [PATCH] Fix build break on -release builds The OC_UNUSED macro is defined in octypes.h which is not included by the source file. Switching to (void) to minimize the amount of changes required to fix. Change-Id: I76c13d448eb568b7f55dcd3974b8ee8891b01098 Signed-off-by: Mike Fenelon Reviewed-on: https://gerrit.iotivity.org/gerrit/17757 Tested-by: jenkins-iotivity Reviewed-by: Alex Kelley Reviewed-by: Dan Mihai --- resource/c_common/octhread/src/windows/octhread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/c_common/octhread/src/windows/octhread.c b/resource/c_common/octhread/src/windows/octhread.c index 9cc5447..c98e51d 100644 --- a/resource/c_common/octhread/src/windows/octhread.c +++ b/resource/c_common/octhread/src/windows/octhread.c @@ -211,8 +211,8 @@ void oc_mutex_unlock(oc_mutex mutex) void oc_mutex_assert_owner(const oc_mutex mutex, bool currentThreadIsOwner) { #ifdef NDEBUG - OC_UNUSED(mutex); - OC_UNUSED(currentThreadIsOwner); + (void)(mutex); + (void)(currentThreadIsOwner); #else assert(NULL != mutex); const oc_mutex_internal *mutexInfo = (const oc_mutex_internal*) mutex; -- 2.7.4