Changeset f0b14cf2 in rtems


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

Add attribute((unused)) to unused function args.

Location:
cpukit/score
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/inline/rtems/score/sysstate.inl

    r58babc7 rf0b14cf2  
    3434 
    3535RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization (
     36#if defined(RTEMS_MULTIPROCESSING)
    3637  bool  is_multiprocessing
     38#else
     39  bool  is_multiprocessing __attribute__((unused))
     40#endif
    3741)
    3842{
    3943  _System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION;
    40   #if defined(RTEMS_MULTIPROCESSING)
     44#if defined(RTEMS_MULTIPROCESSING)
    4145    _System_state_Is_multiprocessing = is_multiprocessing;
    42   #endif
     46#endif
    4347}
    4448 
  • cpukit/score/src/corebarrierrelease.c

    r58babc7 rf0b14cf2  
    4646uint32_t _CORE_barrier_Release(
    4747  CORE_barrier_Control                *the_barrier,
     48#if defined(RTEMS_MULTIPROCESSING)
    4849  Objects_Id                           id,
    4950  CORE_barrier_API_mp_support_callout  api_barrier_mp_support
     51#else
     52  Objects_Id                           id __attribute__((unused)),
     53  CORE_barrier_API_mp_support_callout  api_barrier_mp_support __attribute__((unused))
     54#endif
    5055)
    5156{
  • cpukit/score/src/coremsgbroadcast.c

    r58babc7 rf0b14cf2  
    5656  const void                                *buffer,
    5757  size_t                                     size,
     58#if defined(RTEMS_MULTIPROCESSING)
    5859  Objects_Id                                 id,
    5960  CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support,
     61#else
     62  Objects_Id                                 id __attribute__((unused)),
     63  CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
     64#endif
    6065  uint32_t                                  *count
    6166)
  • cpukit/score/src/coremsgsubmit.c

    r58babc7 rf0b14cf2  
    6060  size_t                                     size,
    6161  Objects_Id                                 id,
     62#if defined(RTEMS_MULTIPROCESSING)
    6263  CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support,
     64#else
     65  CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
     66#endif
    6367  CORE_message_queue_Submit_types            submit_type,
    6468  bool                                       wait,
  • cpukit/score/src/coremutexsurrender.c

    r58babc7 rf0b14cf2  
    4949CORE_mutex_Status _CORE_mutex_Surrender(
    5050  CORE_mutex_Control                *the_mutex,
     51#if defined(RTEMS_MULTIPROCESSING)
    5152  Objects_Id                         id,
    5253  CORE_mutex_API_mp_support_callout  api_mutex_mp_support
     54#else
     55  Objects_Id                         id __attribute__((unused)),
     56  CORE_mutex_API_mp_support_callout  api_mutex_mp_support __attribute__((unused))
     57#endif
    5358)
    5459{
Note: See TracChangeset for help on using the changeset viewer.