diff options
-rw-r--r-- | c/src/exec/rtems/src/semcreate.c | 3 | ||||
-rw-r--r-- | cpukit/rtems/src/semcreate.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/c/src/exec/rtems/src/semcreate.c b/c/src/exec/rtems/src/semcreate.c index 54a5bf80f2..a0c015cde4 100644 --- a/c/src/exec/rtems/src/semcreate.c +++ b/c/src/exec/rtems/src/semcreate.c @@ -159,8 +159,7 @@ rtems_status_code rtems_semaphore_create( break; } } else { - /* just to avoid warnings */ - the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; + the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attributes.only_owner_release = FALSE; } diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c index 54a5bf80f2..a0c015cde4 100644 --- a/cpukit/rtems/src/semcreate.c +++ b/cpukit/rtems/src/semcreate.c @@ -159,8 +159,7 @@ rtems_status_code rtems_semaphore_create( break; } } else { - /* just to avoid warnings */ - the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; + the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attributes.only_owner_release = FALSE; } |