Commit 6eadbca4 authored by jdelange's avatar jdelange

* po_hi_protected.c

   - Fix compilation warnings



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@3765 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 78b25452
......@@ -94,7 +94,9 @@ int __po_hi_protected_unlock (__po_hi_protected_t protected_id)
int __po_hi_mutex_init (__po_hi_mutex_t* mutex, const __po_hi_mutex_protocol_t protocol, const int priority)
{
#ifdef RTEMS_PURE
static int nb_mutex = 0;
#endif
if (mutex == NULL)
{
......@@ -143,6 +145,10 @@ int __po_hi_mutex_init (__po_hi_mutex_t* mutex, const __po_hi_mutex_protocol_t p
}
break;
}
default:
{
break;
}
}
if (pthread_mutex_init (&mutex->posix_mutex, &mutex->posix_mutexattr) != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment