Some of the compilers complain about static functions that are unused.
Change-Id: I8850112903e8e8e6d55d2465f96fedd4e792a69b
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17949
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
pthread_attr_t threadattr;
} oc_thread_internal;
+#ifndef NDEBUG
static pthread_t oc_get_current_thread_id()
{
pthread_t id = pthread_self();
assert(OC_INVALID_THREAD_ID != id);
return id;
}
+#endif
OCThreadResult_t oc_thread_new(oc_thread *t, void *(*start_routine)(void *), void *arg)
{
#endif
} oc_mutex_internal;
+#ifndef NDEBUG
static DWORD oc_get_current_thread_id()
{
DWORD id = GetCurrentThreadId();
assert(OC_INVALID_THREAD_ID != id);
return id;
}
+#endif
typedef struct _tagEventInfo_t
{