Changeset 145cf60e in rtems


Ignore:
Timestamp:
Dec 31, 2008, 3:33:08 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
b5deb75
Parents:
339d93a
Message:

Remove nested include.
Add attribute((unused)) to unused function args.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threadblockingoperationcancel.c

    r339d93a r145cf60e  
    1919#include <rtems/system.h>
    2020#include <rtems/score/thread.h>
     21#if defined(RTEMS_DEBUG)
     22#include <rtems/score/interr.h>
     23#endif
    2124
    2225void _Thread_blocking_operation_Cancel(
     26#if defined(RTEMS_DEBUG)
    2327  Thread_blocking_operation_States  sync_state,
     28#else
     29  Thread_blocking_operation_States  sync_state __attribute__((unused)),
     30#endif
    2431  Thread_Control                   *the_thread,
    2532  ISR_Level                         level
     
    4148
    4249  #if defined(RTEMS_DEBUG)
    43   #include <rtems/score/interr.h>
    4450    if ( (sync_state == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) ||
    4551         (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) {
Note: See TracChangeset for help on using the changeset viewer.