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