summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/rtems/src/semcreate.c3
1 files changed, 1 insertions, 2 deletions
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;
}