diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-12-31 03:33:08 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-12-31 03:33:08 +0000 |
commit | 145cf60eb315e6359a62873066f98b796a0bba7d (patch) | |
tree | ad00aa84742d75c2bbf9aaa64df0335ac66886d2 /cpukit/score/src/threadblockingoperationcancel.c | |
parent | 2008-12-31 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-145cf60eb315e6359a62873066f98b796a0bba7d.tar.bz2 |
Remove nested include.
Add __attribute__((unused)) to unused function args.
Diffstat (limited to 'cpukit/score/src/threadblockingoperationcancel.c')
-rw-r--r-- | cpukit/score/src/threadblockingoperationcancel.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/score/src/threadblockingoperationcancel.c b/cpukit/score/src/threadblockingoperationcancel.c index 3a016d4756..354df0c7e9 100644 --- a/cpukit/score/src/threadblockingoperationcancel.c +++ b/cpukit/score/src/threadblockingoperationcancel.c @@ -18,9 +18,16 @@ #include <rtems/system.h> #include <rtems/score/thread.h> +#if defined(RTEMS_DEBUG) +#include <rtems/score/interr.h> +#endif void _Thread_blocking_operation_Cancel( +#if defined(RTEMS_DEBUG) Thread_blocking_operation_States sync_state, +#else + Thread_blocking_operation_States sync_state __attribute__((unused)), +#endif Thread_Control *the_thread, ISR_Level level ) @@ -40,7 +47,6 @@ void _Thread_blocking_operation_Cancel( */ #if defined(RTEMS_DEBUG) - #include <rtems/score/interr.h> if ( (sync_state == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) || (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Internal_error_Occurred( |