Fix build break on -release builds
authorMike Fenelon <mike.fenelon@microsoft.com>
Tue, 7 Mar 2017 23:56:12 +0000 (15:56 -0800)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Thu, 9 Mar 2017 01:06:10 +0000 (01:06 +0000)
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 <mike.fenelon@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17757
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/c_common/octhread/src/windows/octhread.c

index 9cc5447..c98e51d 100644 (file)
@@ -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;