summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/iterateoverthreads.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpukit/score/src/iterateoverthreads.c b/cpukit/score/src/iterateoverthreads.c
index 34683e6790..8c65becc4c 100644
--- a/cpukit/score/src/iterateoverthreads.c
+++ b/cpukit/score/src/iterateoverthreads.c
@@ -33,11 +33,10 @@ void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
- /*
- * Since POSIX is optional, this can occur.
- */
- if ( !_Objects_Information_table[ api_index ] )
- continue;
+ #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)
+ if ( !_Objects_Information_table[ api_index ] )
+ continue;
+ #endif
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )