Changeset f97536d in rtems


Ignore:
Timestamp:
10/16/15 06:21:48 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
bc792bb
Parents:
c52568d
git-author:
Sebastian Huber <sebastian.huber@…> (10/16/15 06:21:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/26/15 08:13:19)
Message:

basdefs.h: Add and use RTEMS_UNUSED

Files:
127 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/lpc/network/lpc-ethernet.c

    rc52568d rf97536d  
    11281128static int lpc_eth_mdio_read(
    11291129  int phy,
    1130   void *arg __attribute__((unused)),
     1130  void *arg RTEMS_UNUSED,
    11311131  unsigned reg,
    11321132  uint32_t *val
     
    11531153static int lpc_eth_mdio_write(
    11541154  int phy,
    1155   void *arg __attribute__((unused)),
     1155  void *arg RTEMS_UNUSED,
    11561156  unsigned reg,
    11571157  uint32_t val
     
    18121812
    18131813static int lpc_eth_detach(
    1814   struct rtems_bsdnet_ifconfig *config __attribute__((unused))
     1814  struct rtems_bsdnet_ifconfig *config RTEMS_UNUSED
    18151815)
    18161816{
  • c/src/lib/libbsp/i386/pc386/console/fb_cirrus.c

    rc52568d rf97536d  
    278278    unsigned int val)
    279279{
    280   volatile unsigned int dummy __attribute__((unused));
     280  volatile unsigned int dummy RTEMS_UNUSED;
    281281  dummy = fb_cirrus_read_reg8(fbst, VGA_DAC_MASK);
    282282  dummy = fb_cirrus_read_reg8(fbst, VGA_DAC_MASK);
  • c/src/lib/libbsp/i386/shared/comm/uart.c

    rc52568d rf97536d  
    803803
    804804/* ================= GDB support     ===================*/
    805 int BSP_uart_dbgisr_com_regsav[4] __attribute__ ((unused));
     805int BSP_uart_dbgisr_com_regsav[4] RTEMS_UNUSED;
    806806
    807807/*
  • c/src/lib/libbsp/powerpc/beatnik/network/if_em/if_em.c

    rc52568d rf97536d  
    762762em_start(struct ifnet *ifp)
    763763{
    764         struct adapter *adapter __attribute__((unused)) = ifp->if_softc;
     764        struct adapter *adapter RTEMS_UNUSED = ifp->if_softc;
    765765
    766766        EM_LOCK(adapter);
  • c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c

    rc52568d rf97536d  
    138138void BSP_panic(char *s)
    139139{
    140   __attribute__((unused)) rtems_interrupt_level level;
     140  RTEMS_UNUSED rtems_interrupt_level level;
    141141
    142142  rtems_interrupt_disable(level);
     
    150150void _BSP_Fatal_error(unsigned int v)
    151151{
    152   __attribute__((unused)) rtems_interrupt_level level;
     152  RTEMS_UNUSED rtems_interrupt_level level;
    153153
    154154  rtems_interrupt_disable(level);
  • c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c

    rc52568d rf97536d  
    152152void BSP_panic(char *s)
    153153{
    154   __attribute__((unused)) rtems_interrupt_level level;
     154  RTEMS_UNUSED rtems_interrupt_level level;
    155155
    156156  rtems_interrupt_disable(level);
     
    164164void _BSP_Fatal_error(unsigned int v)
    165165{
    166   __attribute__((unused)) rtems_interrupt_level level;
     166  RTEMS_UNUSED rtems_interrupt_level level;
    167167
    168168  rtems_interrupt_disable(level);
  • c/src/lib/libbsp/sparc/shared/can/grcan.c

    rc52568d rf97536d  
    435435   * and we need to tell GCC not to complain.
    436436   */
    437   unsigned int tmp RTEMS_COMPILER_UNUSED_ATTRIBUTE;
     437  unsigned int tmp RTEMS_UNUSED;
    438438
    439439  IRQ_GLOBAL_PREPARE(oldLevel);
  • cpukit/ftpd/ftpd.c

    rc52568d rf97536d  
    19911991 */
    19921992static void
    1993 daemon(rtems_task_argument args __attribute__((unused)))
     1993daemon(rtems_task_argument args RTEMS_UNUSED)
    19941994{
    19951995  int                 s;
  • cpukit/libblock/src/bdpart-mount.c

    rc52568d rf97536d  
    3333rtems_status_code rtems_bdpart_mount(
    3434  const char *disk_name,
    35   const rtems_bdpart_partition *pt __attribute__((unused)),
     35  const rtems_bdpart_partition *pt RTEMS_UNUSED,
    3636  size_t count,
    3737  const char *mount_base
     
    119119rtems_status_code rtems_bdpart_unmount(
    120120  const char *disk_name,
    121   const rtems_bdpart_partition *pt __attribute__((unused)),
     121  const rtems_bdpart_partition *pt RTEMS_UNUSED,
    122122  size_t count,
    123123  const char *mount_base
  • cpukit/libblock/src/bdpart-register.c

    rc52568d rf97536d  
    143143rtems_status_code rtems_bdpart_unregister(
    144144  const char *disk_name,
    145   const rtems_bdpart_partition *pt __attribute__((unused)),
     145  const rtems_bdpart_partition *pt RTEMS_UNUSED,
    146146  size_t count
    147147)
  • cpukit/libblock/src/blkdev.c

    rc52568d rf97536d  
    3131rtems_device_driver
    3232rtems_blkdev_generic_read(
    33     rtems_device_major_number major __attribute__((unused)),
    34     rtems_device_minor_number minor __attribute__((unused)),
     33    rtems_device_major_number major RTEMS_UNUSED,
     34    rtems_device_minor_number minor RTEMS_UNUSED,
    3535    void                    * arg)
    3636{
     
    7878rtems_device_driver
    7979rtems_blkdev_generic_write(
    80     rtems_device_major_number major __attribute__((unused)),
    81     rtems_device_minor_number minor __attribute__((unused)),
     80    rtems_device_major_number major RTEMS_UNUSED,
     81    rtems_device_minor_number minor RTEMS_UNUSED,
    8282    void                    * arg)
    8383{
     
    153153rtems_device_driver
    154154rtems_blkdev_generic_close(
    155     rtems_device_major_number major __attribute__((unused)),
    156     rtems_device_minor_number minor __attribute__((unused)),
     155    rtems_device_major_number major RTEMS_UNUSED,
     156    rtems_device_minor_number minor RTEMS_UNUSED,
    157157    void                    * arg)
    158158{
     
    171171rtems_device_driver
    172172rtems_blkdev_generic_ioctl(
    173     rtems_device_major_number major __attribute__((unused)),
    174     rtems_device_minor_number minor __attribute__((unused)),
     173    rtems_device_major_number major RTEMS_UNUSED,
     174    rtems_device_minor_number minor RTEMS_UNUSED,
    175175    void                    * arg)
    176176{
  • cpukit/libblock/src/flashdisk.c

    rc52568d rf97536d  
    24642464rtems_fdisk_initialize (rtems_device_major_number major,
    24652465                        rtems_device_minor_number minor,
    2466                         void*                     arg __attribute__((unused)))
     2466                        void*                     arg RTEMS_UNUSED)
    24672467{
    24682468  const rtems_flashdisk_config* c = rtems_flashdisk_configuration;
  • cpukit/libblock/src/media-server.c

    rc52568d rf97536d  
    4343static rtems_id server_id = RTEMS_ID_NONE;
    4444
    45 static void media_server(rtems_task_argument arg __attribute__((unused)))
     45static void media_server(rtems_task_argument arg RTEMS_UNUSED)
    4646{
    4747  rtems_status_code sc = RTEMS_SUCCESSFUL;
  • cpukit/libblock/src/media.c

    rc52568d rf97536d  
    647647  rtems_media_state state,
    648648  const char *src,
    649   char **dest __attribute__((unused)),
     649  char **dest RTEMS_UNUSED,
    650650  void *worker_arg
    651651)
     
    750750  rtems_media_state state,
    751751  const char *src,
    752   char **dest __attribute__((unused)),
    753   void *worker_arg __attribute__((unused))
     752  char **dest RTEMS_UNUSED,
     753  void *worker_arg RTEMS_UNUSED
    754754)
    755755{
     
    796796  rtems_media_state state,
    797797  const char *src,
    798   char **dest __attribute__((unused)),
    799   void *worker_arg __attribute__((unused))
     798  char **dest RTEMS_UNUSED,
     799  void *worker_arg RTEMS_UNUSED
    800800)
    801801{
  • cpukit/libblock/src/nvdisk-sram.c

    rc52568d rf97536d  
    2929
    3030static int
    31 rtems_nvdisk_sram_read (uint32_t device __attribute__((unused)),
    32                         uint32_t flags __attribute__((unused)),
     31rtems_nvdisk_sram_read (uint32_t device RTEMS_UNUSED,
     32                        uint32_t flags RTEMS_UNUSED,
    3333                        void*    base,
    3434                        uint32_t offset,
     
    4141
    4242static int
    43 rtems_nvdisk_sram_write (uint32_t    device __attribute__((unused)),
    44                          uint32_t    flags __attribute__((unused)),
     43rtems_nvdisk_sram_write (uint32_t    device RTEMS_UNUSED,
     44                         uint32_t    flags RTEMS_UNUSED,
    4545                         void*       base,
    4646                         uint32_t    offset,
     
    5353
    5454static int
    55 rtems_nvdisk_sram_verify (uint32_t    device __attribute__((unused)),
    56                           uint32_t    flags __attribute__((unused)),
     55rtems_nvdisk_sram_verify (uint32_t    device RTEMS_UNUSED,
     56                          uint32_t    flags RTEMS_UNUSED,
    5757                          void*       base,
    5858                          uint32_t    offset,
  • cpukit/libblock/src/nvdisk.c

    rc52568d rf97536d  
    765765rtems_nvdisk_initialize (rtems_device_major_number major,
    766766                        rtems_device_minor_number minor,
    767                         void*                     arg __attribute__((unused)))
     767                        void*                     arg RTEMS_UNUSED)
    768768{
    769769  const rtems_nvdisk_config* c = rtems_nvdisk_configuration;
  • cpukit/libblock/src/ramdisk-config.c

    rc52568d rf97536d  
    2525ramdisk_initialize(
    2626    rtems_device_major_number major,
    27     rtems_device_minor_number minor __attribute__((unused)),
    28     void *arg __attribute__((unused)))
     27    rtems_device_minor_number minor RTEMS_UNUSED,
     28    void *arg RTEMS_UNUSED)
    2929{
    3030    rtems_device_minor_number i;
  • cpukit/libcsupport/src/__gettod.c

    rc52568d rf97536d  
    4040int gettimeofday(
    4141  struct timeval *__restrict tp,
    42   void *__restrict __tz __attribute__((unused))
     42  void *__restrict __tz RTEMS_UNUSED
    4343)
    4444{
     
    7171 */
    7272int _gettimeofday_r(
    73   struct _reent   *ignored_reentrancy_stuff __attribute__((unused)),
     73  struct _reent   *ignored_reentrancy_stuff RTEMS_UNUSED,
    7474  struct timeval  *tp,
    7575  void           *__tz
  • cpukit/libcsupport/src/__times.c

    rc52568d rf97536d  
    116116 */
    117117clock_t _times_r(
    118    struct _reent *ptr __attribute__((unused)),
     118   struct _reent *ptr RTEMS_UNUSED,
    119119   struct tms  *ptms
    120120)
  • cpukit/libcsupport/src/_calloc_r.c

    rc52568d rf97536d  
    2424
    2525void *_calloc_r(
    26   struct _reent *ignored __attribute__((unused)),
     26  struct _reent *ignored,
    2727  size_t         elements,
    2828  size_t         size
    2929)
    3030{
     31  (void) ignored;
    3132  return calloc( elements, size );
    3233}
  • cpukit/libcsupport/src/_free_r.c

    rc52568d rf97536d  
    2424
    2525void _free_r(
    26   struct _reent *ignored __attribute__((unused)),
     26  struct _reent *ignored,
    2727  void          *ptr
    2828)
    2929{
     30  (void) ignored;
    3031  free( ptr );
    3132}
  • cpukit/libcsupport/src/_malloc_r.c

    rc52568d rf97536d  
    1919
    2020void *_malloc_r(
    21   struct _reent *ignored __attribute__((unused)),
     21  struct _reent *ignored,
    2222  size_t         size
    2323)
    2424{
     25  (void) ignored;
    2526  return malloc( size );
    2627}
  • cpukit/libcsupport/src/_realloc_r.c

    rc52568d rf97536d  
    2424
    2525void *_realloc_r(
    26   struct _reent *ignored __attribute__((unused)),
     26  struct _reent *ignored,
    2727  void          *ptr,
    2828  size_t         size
    2929)
    3030{
     31  (void) ignored;
    3132  return realloc( ptr, size );
    3233}
  • cpukit/libcsupport/src/_rename_r.c

    rc52568d rf97536d  
    3232 */
    3333int _rename_r(
    34   struct _reent *ptr __attribute__((unused)),
     34  struct _reent *ptr RTEMS_UNUSED,
    3535  const char    *old,
    3636  const char    *new
  • cpukit/libcsupport/src/assocnamebad.c

    rc52568d rf97536d  
    2323    uint32_t   bad_value
    2424#else
    25     uint32_t   bad_value __attribute((unused))
     25    uint32_t   bad_value RTEMS_UNUSED
    2626#endif
    2727)
  • cpukit/libcsupport/src/close.c

    rc52568d rf97536d  
    5252
    5353int _close_r(
    54   struct _reent *ptr __attribute__((unused)),
     54  struct _reent *ptr RTEMS_UNUSED,
    5555  int            fd
    5656)
  • cpukit/libcsupport/src/envlock.c

    rc52568d rf97536d  
    106106
    107107void
    108 __env_lock(struct _reent *r __attribute__((unused)))
     108__env_lock(struct _reent *r RTEMS_UNUSED)
    109109{
    110110  rtems_libio_lock();
     
    112112
    113113void
    114 __env_unlock(struct _reent *r __attribute__((unused)))
     114__env_unlock(struct _reent *r RTEMS_UNUSED)
    115115{
    116116  rtems_libio_unlock();
  • cpukit/libcsupport/src/fcntl.c

    rc52568d rf97536d  
    240240
    241241int _fcntl_r(
    242   struct _reent *ptr __attribute__((unused)),
     242  struct _reent *ptr RTEMS_UNUSED,
    243243  int fd,
    244244  int cmd,
  • cpukit/libcsupport/src/flockfile.c

    rc52568d rf97536d  
    2424 *  This is a non-functional stub
    2525 */
    26 void flockfile(FILE* file __attribute__((unused)))
     26void flockfile(FILE* file)
    2727{
     28  (void) file;
    2829}
    2930
  • cpukit/libcsupport/src/fstat.c

    rc52568d rf97536d  
    6161
    6262int _fstat_r(
    63   struct _reent *ptr __attribute__((unused)),
     63  struct _reent *ptr RTEMS_UNUSED,
    6464  int            fd,
    6565  struct stat   *buf
  • cpukit/libcsupport/src/ftrylockfile.c

    rc52568d rf97536d  
    1818
    1919/* This is a non-functional stub */
    20 int ftrylockfile(FILE* file __attribute__((unused)))
     20int ftrylockfile(FILE* file)
    2121{
     22  (void) file;
    2223  rtems_set_errno_and_return_minus_one( ENOTSUP );
    2324}
  • cpukit/libcsupport/src/funlockfile.c

    rc52568d rf97536d  
    2525 * This is a non-functional stub
    2626 */
    27 void funlockfile(FILE* file __attribute__((unused)))
     27void funlockfile(FILE* file)
    2828{
     29  (void) file;
    2930}
    3031
  • cpukit/libcsupport/src/getpid.c

    rc52568d rf97536d  
    3131 */
    3232pid_t _getpid_r(
    33   struct _reent *ptr __attribute__((unused))
     33  struct _reent *ptr RTEMS_UNUSED
    3434)
    3535{
  • cpukit/libcsupport/src/isatty_r.c

    rc52568d rf97536d  
    2929
    3030int _isatty_r(
    31   struct _reent *ptr __attribute__((unused)),
     31  struct _reent *ptr,
    3232  int            fd
    3333)
    3434{
     35  (void) ptr;
    3536  return isatty( fd );
    3637}
  • cpukit/libcsupport/src/link.c

    rc52568d rf97536d  
    6767 */
    6868int _link_r(
    69   struct _reent *ptr __attribute__((unused)),
     69  struct _reent *ptr RTEMS_UNUSED,
    7070  const char    *path1,
    7171  const char    *path2
  • cpukit/libcsupport/src/lseek.c

    rc52568d rf97536d  
    4040
    4141off_t _lseek_r(
    42   struct _reent *ptr __attribute__((unused)),
     42  struct _reent *ptr RTEMS_UNUSED,
    4343  int            fd,
    4444  off_t          offset,
  • cpukit/libcsupport/src/newlibc_reent.c

    rc52568d rf97536d  
    3232
    3333bool newlib_create_hook(
    34   rtems_tcb *current_task __attribute__((unused)),
     34  rtems_tcb *current_task RTEMS_UNUSED,
    3535  rtems_tcb *creating_task
    3636)
  • cpukit/libcsupport/src/open.c

    rc52568d rf97536d  
    162162 */
    163163int _open_r(
    164   struct _reent *ptr __attribute__((unused)),
     164  struct _reent *ptr RTEMS_UNUSED,
    165165  const char    *buf,
    166166  int            oflag,
  • cpukit/libcsupport/src/printk_plugin.c

    rc52568d rf97536d  
    2323
    2424int printk_plugin(
    25   void *ignored __attribute__((unused)),
     25  void *ignored,
    2626  const char *format,
    2727  ...
     
    2929{
    3030  va_list arg_pointer;
     31
     32  (void) ignored;
    3133
    3234  va_start (arg_pointer, format);
  • cpukit/libcsupport/src/read.c

    rc52568d rf97536d  
    5454 */
    5555ssize_t _read_r(
    56   struct _reent *ptr __attribute__((unused)),
     56  struct _reent *ptr RTEMS_UNUSED,
    5757  int            fd,
    5858  void          *buf,
  • cpukit/libcsupport/src/rtems_heap_null_extend.c

    rc52568d rf97536d  
    2020
    2121void *rtems_heap_null_extend(
    22   Heap_Control *heap __attribute__((unused)),
    23   size_t alloc_size __attribute__((unused))
     22  Heap_Control *heap RTEMS_UNUSED,
     23  size_t alloc_size RTEMS_UNUSED
    2424)
    2525{
  • cpukit/libcsupport/src/setpgid.c

    rc52568d rf97536d  
    1818 */
    1919int setpgid(
    20   pid_t  pid __attribute__((unused)),
    21   pid_t  pgid __attribute__((unused))
     20  pid_t  pid,
     21  pid_t  pgid
    2222)
    2323{
     24  (void) pid;
     25  (void) pgid;
    2426  rtems_set_errno_and_return_minus_one( ENOSYS );
    2527}
  • cpukit/libcsupport/src/stat.c

    rc52568d rf97536d  
    7070 */
    7171int _STAT_R_NAME(
    72   struct _reent *ptr __attribute__((unused)),
     72  struct _reent *ptr RTEMS_UNUSED,
    7373  const char    *path,
    7474  struct stat   *buf
     
    7979 */
    8080int _STAT_R_NAME(
    81   struct _reent *ptr __attribute__((unused)),
     81  struct _reent *ptr RTEMS_UNUSED,
    8282  const char    *path,
    8383  struct stat   *buf
  • cpukit/libcsupport/src/tcflow.c

    rc52568d rf97536d  
    2626
    2727int tcflow (
    28   int fd __attribute__((unused)),
     28  int fd,
    2929  int action
    3030)
    3131{
     32  (void) fd;
     33
    3234  switch (action) {
    3335    case TCOOFF:
  • cpukit/libcsupport/src/tcgetpgrp.c

    rc52568d rf97536d  
    2727 *  POSIX 1003.1b 7.2.3 - Get Foreground Process Group ID
    2828 */
    29 pid_t tcgetpgrp(int fd __attribute__((unused)))
     29pid_t tcgetpgrp(int fd)
    3030{
     31  (void) fd;
    3132  return getpid();
    3233}
  • cpukit/libcsupport/src/tcsendbreak.c

    rc52568d rf97536d  
    3131
    3232int tcsendbreak (
    33   int fd __attribute__((unused)),
    34   int duration __attribute__((unused)) )
     33  int fd RTEMS_UNUSED,
     34  int duration RTEMS_UNUSED )
    3535{
    3636  return 0;
  • cpukit/libcsupport/src/tcsetpgrp.c

    rc52568d rf97536d  
    3434 */
    3535int tcsetpgrp(
    36   int fd __attribute__((unused)),
    37   pid_t pid __attribute__((unused)) )
     36  int fd RTEMS_UNUSED,
     37  pid_t pid RTEMS_UNUSED )
    3838{
    3939  return 0;
  • cpukit/libcsupport/src/unlink.c

    rc52568d rf97536d  
    6666 */
    6767int _unlink_r(
    68   struct _reent *ptr __attribute__((unused)),
     68  struct _reent *ptr RTEMS_UNUSED,
    6969  const char    *path
    7070)
  • cpukit/libcsupport/src/write_r.c

    rc52568d rf97536d  
    3333
    3434_ssize_t _write_r(
    35   struct _reent *ptr __attribute__((unused)),
     35  struct _reent *ptr RTEMS_UNUSED,
    3636  int            fd,
    3737  const void    *buf,
  • cpukit/libfs/src/nfsclient/src/dirutils.c

    rc52568d rf97536d  
    366366
    367367#ifdef HAVE_CEXP
    368 static CexpHelpTabRec _cexpHelpTabDirutils[] __attribute__((unused)) = {
     368static CexpHelpTabRec _cexpHelpTabDirutils[] RTEMS_UNUSED = {
    369369        HELP(
    370370"copy a file: cp(""from"",[""to""[,""-f""]])\n\
  • cpukit/libmisc/capture/capture-cli.c

    rc52568d rf97536d  
    3838#include <rtems/cpuuse.h>
    3939#
    40 #define RC_UNUSED __attribute__((unused))
     40#define RC_UNUSED RTEMS_UNUSED
    4141
    4242#define RTEMS_CAPTURE_CLI_MAX_LOAD_TASKS (20)
  • cpukit/libmisc/capture/capture.c

    rc52568d rf97536d  
    564564 */
    565565rtems_status_code
    566 rtems_capture_open (uint32_t   size, rtems_capture_timestamp timestamp __attribute__((unused)))
     566rtems_capture_open (uint32_t   size, rtems_capture_timestamp timestamp RTEMS_UNUSED)
    567567{
    568568  rtems_status_code       sc = RTEMS_SUCCESSFUL;
  • cpukit/libmisc/devnull/devnull.c

    rc52568d rf97536d  
    4545rtems_device_driver null_initialize(
    4646  rtems_device_major_number major,
    47   rtems_device_minor_number minor __attribute__((unused)),
    48   void *pargp __attribute__((unused))
     47  rtems_device_minor_number minor RTEMS_UNUSED,
     48  void *pargp RTEMS_UNUSED
    4949)
    5050{
     
    8383
    8484rtems_device_driver null_open(
    85   rtems_device_major_number major __attribute__((unused)),
    86   rtems_device_minor_number minor __attribute__((unused)),
    87   void *pargp __attribute__((unused))
     85  rtems_device_major_number major RTEMS_UNUSED,
     86  rtems_device_minor_number minor RTEMS_UNUSED,
     87  void *pargp RTEMS_UNUSED
    8888)
    8989{
     
    106106
    107107rtems_device_driver null_close(
    108   rtems_device_major_number major __attribute__((unused)),
    109   rtems_device_minor_number minor __attribute__((unused)),
    110   void *pargp __attribute__((unused))
     108  rtems_device_major_number major RTEMS_UNUSED,
     109  rtems_device_minor_number minor RTEMS_UNUSED,
     110  void *pargp RTEMS_UNUSED
    111111)
    112112{
     
    129129
    130130rtems_device_driver null_read(
    131   rtems_device_major_number major __attribute__((unused)),
    132   rtems_device_minor_number minor __attribute__((unused)),
    133   void *pargp __attribute__((unused))
     131  rtems_device_major_number major RTEMS_UNUSED,
     132  rtems_device_minor_number minor RTEMS_UNUSED,
     133  void *pargp RTEMS_UNUSED
    134134)
    135135{
     
    152152
    153153rtems_device_driver null_write(
    154   rtems_device_major_number major __attribute__((unused)),
    155   rtems_device_minor_number minor __attribute__((unused)),
     154  rtems_device_major_number major RTEMS_UNUSED,
     155  rtems_device_minor_number minor RTEMS_UNUSED,
    156156  void *pargp
    157157)
     
    180180
    181181rtems_device_driver null_control(
    182   rtems_device_major_number major __attribute__((unused)),
    183   rtems_device_minor_number minor __attribute__((unused)),
    184   void *pargp __attribute__((unused))
     182  rtems_device_major_number major RTEMS_UNUSED,
     183  rtems_device_minor_number minor RTEMS_UNUSED,
     184  void *pargp RTEMS_UNUSED
    185185)
    186186{
  • cpukit/libmisc/devnull/devzero.c

    rc52568d rf97536d  
    3232rtems_device_driver dev_zero_initialize(
    3333  rtems_device_major_number major,
    34   rtems_device_minor_number minor __attribute__((unused)),
    35   void *arg __attribute__((unused))
     34  rtems_device_minor_number minor RTEMS_UNUSED,
     35  void *arg RTEMS_UNUSED
    3636)
    3737{
     
    4040
    4141rtems_device_driver dev_zero_open(
    42   rtems_device_major_number major __attribute__((unused)),
    43   rtems_device_minor_number minor __attribute__((unused)),
    44   void *arg __attribute__((unused))
     42  rtems_device_major_number major RTEMS_UNUSED,
     43  rtems_device_minor_number minor RTEMS_UNUSED,
     44  void *arg RTEMS_UNUSED
    4545)
    4646{
     
    4949
    5050rtems_device_driver dev_zero_close(
    51   rtems_device_major_number major __attribute__((unused)),
    52   rtems_device_minor_number minor __attribute__((unused)),
    53   void *arg __attribute__((unused))
     51  rtems_device_major_number major RTEMS_UNUSED,
     52  rtems_device_minor_number minor RTEMS_UNUSED,
     53  void *arg RTEMS_UNUSED
    5454)
    5555{
     
    5858
    5959rtems_device_driver dev_zero_read(
    60   rtems_device_major_number major __attribute__((unused)),
    61   rtems_device_minor_number minor __attribute__((unused)),
    62   void *arg __attribute__((unused))
     60  rtems_device_major_number major RTEMS_UNUSED,
     61  rtems_device_minor_number minor RTEMS_UNUSED,
     62  void *arg RTEMS_UNUSED
    6363)
    6464{
     
    7272
    7373rtems_device_driver dev_zero_write(
    74   rtems_device_major_number major __attribute__((unused)),
    75   rtems_device_minor_number minor __attribute__((unused)),
     74  rtems_device_major_number major RTEMS_UNUSED,
     75  rtems_device_minor_number minor RTEMS_UNUSED,
    7676  void *arg
    7777)
     
    8585
    8686rtems_device_driver dev_zero_control(
    87   rtems_device_major_number major __attribute__((unused)),
    88   rtems_device_minor_number minor __attribute__((unused)),
    89   void *arg __attribute__((unused))
     87  rtems_device_major_number major RTEMS_UNUSED,
     88  rtems_device_minor_number minor RTEMS_UNUSED,
     89  void *arg RTEMS_UNUSED
    9090)
    9191{
  • cpukit/libmisc/fb/mw_uid.c

    rc52568d rf97536d  
    3737int uid_open_queue(
    3838  const char *q_name,
    39   int         flags __attribute__((unused)),
     39  int         flags RTEMS_UNUSED,
    4040  size_t      max_msgs
    4141)
  • cpukit/libmisc/monitor/mon-command.c

    rc52568d rf97536d  
    176176  char                             **argv,
    177177  const rtems_monitor_command_arg_t *command_arg,
    178   bool                               verbose __attribute__((unused))
     178  bool                               verbose RTEMS_UNUSED
    179179)
    180180{
  • cpukit/libmisc/monitor/mon-config.c

    rc52568d rf97536d  
    5656const void *
    5757rtems_monitor_config_next(
    58     void                  *object_info __attribute__((unused)),
    59     rtems_monitor_config_t *canonical_config __attribute__((unused)),
     58    void                  *object_info RTEMS_UNUSED,
     59    rtems_monitor_config_t *canonical_config RTEMS_UNUSED,
    6060    rtems_id              *next_id
    6161)
     
    8080void
    8181rtems_monitor_config_dump_header(
    82     bool verbose __attribute__((unused))
     82    bool verbose RTEMS_UNUSED
    8383)
    8484{
     
    9494rtems_monitor_config_dump(
    9595    rtems_monitor_config_t *monitor_config,
    96     bool                 verbose __attribute__((unused))
     96    bool                 verbose RTEMS_UNUSED
    9797)
    9898{
  • cpukit/libmisc/monitor/mon-driver.c

    rc52568d rf97536d  
    5959const void *
    6060rtems_monitor_driver_next(
    61     void                  *object_info __attribute__((unused)),
     61    void                  *object_info RTEMS_UNUSED,
    6262    rtems_monitor_driver_t *canonical_driver,
    6363    rtems_id              *next_id
     
    8989void
    9090rtems_monitor_driver_dump_header(
    91     bool verbose __attribute__((unused))
     91    bool verbose RTEMS_UNUSED
    9292)
    9393{
  • cpukit/libmisc/monitor/mon-extension.c

    rc52568d rf97536d  
    4242void
    4343rtems_monitor_extension_dump_header(
    44     bool verbose __attribute__((unused))
     44    bool verbose RTEMS_UNUSED
    4545)
    4646{
  • cpukit/libmisc/monitor/mon-itask.c

    rc52568d rf97536d  
    3636const void *
    3737rtems_monitor_init_task_next(
    38     void                  *object_info __attribute__((unused)),
     38    void                  *object_info RTEMS_UNUSED,
    3939    rtems_monitor_init_task_t *canonical_init_task,
    4040    rtems_id              *next_id
     
    6969void
    7070rtems_monitor_init_task_dump_header(
    71     bool verbose __attribute__((unused))
     71    bool verbose RTEMS_UNUSED
    7272)
    7373{
  • cpukit/libmisc/monitor/mon-monitor.c

    rc52568d rf97536d  
    298298
    299299void rtems_monitor_debugger_cmd(
    300   int                                argc __attribute__((unused)),
    301   char                             **argv __attribute__((unused)),
    302   const rtems_monitor_command_arg_t *command_arg __attribute__((unused)),
    303   bool                               verbose __attribute__((unused))
     300  int                                argc RTEMS_UNUSED,
     301  char                             **argv RTEMS_UNUSED,
     302  const rtems_monitor_command_arg_t *command_arg RTEMS_UNUSED,
     303  bool                               verbose RTEMS_UNUSED
    304304)
    305305{
     
    312312  int                                argc,
    313313  char                             **argv,
    314   const rtems_monitor_command_arg_t *command_arg __attribute__((unused)),
    315   bool                               verbose __attribute__((unused))
     314  const rtems_monitor_command_arg_t *command_arg RTEMS_UNUSED,
     315  bool                               verbose RTEMS_UNUSED
    316316)
    317317{
     
    326326  char                             **argv,
    327327  const rtems_monitor_command_arg_t *command_arg,
    328   bool                               verbose __attribute__((unused))
     328  bool                               verbose RTEMS_UNUSED
    329329)
    330330{
     
    336336
    337337void rtems_monitor_continue_cmd(
    338   int                                argc __attribute__((unused)),
    339   char                             **argv __attribute__((unused)),
    340   const rtems_monitor_command_arg_t *command_arg __attribute__((unused)),
    341   bool                               verbose __attribute__((unused))
     338  int                                argc RTEMS_UNUSED,
     339  char                             **argv RTEMS_UNUSED,
     340  const rtems_monitor_command_arg_t *command_arg RTEMS_UNUSED,
     341  bool                               verbose RTEMS_UNUSED
    342342)
    343343{
     
    349349  int                                argc,
    350350  char                             **argv,
    351   const rtems_monitor_command_arg_t *command_arg __attribute__((unused)),
    352   bool                               verbose __attribute__((unused))
     351  const rtems_monitor_command_arg_t *command_arg RTEMS_UNUSED,
     352  bool                               verbose RTEMS_UNUSED
    353353)
    354354{
  • cpukit/libmisc/monitor/mon-network.c

    rc52568d rf97536d  
    2929
    3030void mon_ifconfig(int argc, char *argv[],
    31   uint32_t command_arg __attribute__((unused)),
    32   bool verbose __attribute__((unused)))
     31  uint32_t command_arg RTEMS_UNUSED,
     32  bool verbose RTEMS_UNUSED)
    3333{
    3434    struct sockaddr_in  ipaddr;
     
    234234
    235235void mon_route(int argc, char *argv[],
    236   uint32_t command_arg __attribute__((unused)),
    237   bool verbose __attribute__((unused)))
     236  uint32_t command_arg RTEMS_UNUSED,
     237  bool verbose RTEMS_UNUSED)
    238238{
    239239    int                cmd;
  • cpukit/libmisc/monitor/mon-part.c

    rc52568d rf97536d  
    3131void
    3232rtems_monitor_part_dump_header(
    33     bool verbose __attribute__((unused))
     33    bool verbose RTEMS_UNUSED
    3434)
    3535{
     
    4848rtems_monitor_part_dump(
    4949    rtems_monitor_part_t *monitor_part,
    50     bool  verbose __attribute__((unused))
     50    bool  verbose RTEMS_UNUSED
    5151)
    5252{
  • cpukit/libmisc/monitor/mon-queue.c

    rc52568d rf97536d  
    2525void
    2626rtems_monitor_queue_dump_header(
    27     bool verbose __attribute__((unused))
     27    bool verbose RTEMS_UNUSED
    2828)
    2929{
     
    4545rtems_monitor_queue_dump(
    4646    rtems_monitor_queue_t *monitor_queue,
    47     bool  verbose __attribute__((unused))
     47    bool  verbose RTEMS_UNUSED
    4848)
    4949{
  • cpukit/libmisc/monitor/mon-region.c

    rc52568d rf97536d  
    3232void
    3333rtems_monitor_region_dump_header(
    34     bool verbose __attribute__((unused))
     34    bool verbose RTEMS_UNUSED
    3535)
    3636{
     
    4949rtems_monitor_region_dump(
    5050    rtems_monitor_region_t *monitor_region,
    51     bool  verbose __attribute__((unused))
     51    bool  verbose RTEMS_UNUSED
    5252)
    5353{
  • cpukit/libmisc/monitor/mon-sema.c

    rc52568d rf97536d  
    5353void
    5454rtems_monitor_sema_dump_header(
    55     bool verbose __attribute__((unused))
     55    bool verbose RTEMS_UNUSED
    5656)
    5757{
     
    7070rtems_monitor_sema_dump(
    7171    rtems_monitor_sema_t *monitor_sema,
    72     bool  verbose __attribute__((unused))
     72    bool  verbose RTEMS_UNUSED
    7373)
    7474{
  • cpukit/libmisc/monitor/mon-server.c

    rc52568d rf97536d  
    112112void
    113113rtems_monitor_server_task(
    114     rtems_task_argument monitor_flags __attribute__((unused))
     114    rtems_task_argument monitor_flags RTEMS_UNUSED
    115115)
    116116{
     
    215215void
    216216rtems_monitor_server_init(
    217     uint32_t   monitor_flags __attribute__((unused))
     217    uint32_t   monitor_flags RTEMS_UNUSED
    218218)
    219219{
  • cpukit/libmisc/monitor/mon-symbols.c

    rc52568d rf97536d  
    300300rtems_monitor_symbol_next(
    301301    void                   *object_info,
    302     rtems_monitor_symbol_t *canonical __attribute__((unused)),
     302    rtems_monitor_symbol_t *canonical RTEMS_UNUSED,
    303303    rtems_id               *next_id
    304304)
     
    420420rtems_monitor_symbol_dump_all(
    421421    rtems_symbol_table_t *table,
    422     bool                  verbose __attribute__((unused))
     422    bool                  verbose RTEMS_UNUSED
    423423)
    424424{
  • cpukit/libmisc/monitor/mon-task.c

    rc52568d rf97536d  
    5656void
    5757rtems_monitor_task_dump_header(
    58     bool verbose __attribute__((unused))
     58    bool verbose RTEMS_UNUSED
    5959)
    6060{
     
    7272rtems_monitor_task_dump(
    7373    rtems_monitor_task_t *monitor_task,
    74     bool                  verbose __attribute__((unused))
     74    bool                  verbose RTEMS_UNUSED
    7575)
    7676{
  • cpukit/libmisc/serdbg/termios_printk.c

    rc52568d rf97536d  
    4444
    4545static void _termios_printk_null_char(
    46         char c __attribute__((unused)))
     46        char c RTEMS_UNUSED)
    4747{
    4848  return;
  • cpukit/libmisc/shell/cmds.c

    rc52568d rf97536d  
    4646}
    4747
    48 static bool rtems_shell_register_command(const rtems_monitor_command_entry_t *e, void *arg __attribute__((unused)))
     48static bool rtems_shell_register_command(const rtems_monitor_command_entry_t *e, void *arg RTEMS_UNUSED)
    4949{
    5050  /* Exclude EXIT (alias quit)*/
  • cpukit/libmisc/shell/err.h

    rc52568d rf97536d  
    6060
    6161#include <setjmp.h>
     62#include <rtems.h>
    6263
    6364extern  jmp_buf rtems_shell_bsd_exit_recover;
  • cpukit/libmisc/shell/extern-cp.h

    rc52568d rf97536d  
    4444
    4545#include <setjmp.h>
     46#include <rtems.h>
    4647
    4748typedef struct {
  • cpukit/libmisc/shell/extern-ls.h

    rc52568d rf97536d  
    4242#include <sys/cdefs.h>
    4343#include <setjmp.h>
     44#include <rtems.h>
    4445
    4546#define major(d) rtems_filesystem_dev_major_t(d)
  • cpukit/libmisc/shell/hexdump-odsyntax.c

    rc52568d rf97536d  
    6363
    6464#ifndef __unused
    65 #define __unused __attribute((__unused__))
     65#define __unused RTEMS_UNUSED
    6666#endif
    6767
  • cpukit/libmisc/shell/main_dd.c

    rc52568d rf97536d  
    7878
    7979#ifndef __unused
    80 #define __unused __attribute((__unused__))
     80#define __unused RTEMS_UNUSED
    8181#endif
    8282
  • cpukit/libmisc/shell/main_halt.c

    rc52568d rf97536d  
    2121
    2222static int rtems_shell_main_shutdown(
    23   int   argc __attribute__((unused)),
    24   char *argv[] __attribute__((unused))
     23  int   argc RTEMS_UNUSED,
     24  char *argv[] RTEMS_UNUSED
    2525)
    2626{
  • cpukit/libmisc/shell/main_id.c

    rc52568d rf97536d  
    2828
    2929static int rtems_shell_main_id(
    30   int   argc __attribute__((unused)),
    31   char *argv[] __attribute__((unused))
     30  int   argc RTEMS_UNUSED,
     31  char *argv[] RTEMS_UNUSED
    3232)
    3333{
  • cpukit/libmisc/shell/main_logoff.c

    rc52568d rf97536d  
    2222
    2323static int rtems_shell_main_logoff(
    24   int   argc __attribute__((unused)),
    25   char *argv[] __attribute__((unused))
     24  int   argc RTEMS_UNUSED,
     25  char *argv[] RTEMS_UNUSED
    2626)
    2727{
  • cpukit/libmisc/shell/main_mount_nfs.c

    rc52568d rf97536d  
    3030  const char*                device,
    3131  const char*                mntpoint,
    32   rtems_shell_filesystems_t* fs __attribute__((unused)),
    33   rtems_filesystem_options_t options __attribute__((unused)))
     32  rtems_shell_filesystems_t* fs RTEMS_UNUSED,
     33  rtems_filesystem_options_t options RTEMS_UNUSED)
    3434{
    3535  char* uidhost;
  • cpukit/libmisc/shell/main_pwd.c

    rc52568d rf97536d  
    2323
    2424static int rtems_shell_main_pwd(
    25   int   argc __attribute__((unused)),
    26   char *argv[] __attribute__((unused))
     25  int   argc RTEMS_UNUSED,
     26  char *argv[] RTEMS_UNUSED
    2727)
    2828{
  • cpukit/libmisc/shell/main_stackuse.c

    rc52568d rf97536d  
    2222
    2323static int rtems_shell_main_stackuse(
    24   int   argc __attribute__((unused)),
    25   char *argv[] __attribute__((unused))
     24  int   argc RTEMS_UNUSED,
     25  char *argv[] RTEMS_UNUSED
    2626)
    2727{
  • cpukit/libmisc/shell/main_tty.c

    rc52568d rf97536d  
    2525
    2626static int rtems_shell_main_tty(
    27   int   argc __attribute__((unused)),
    28   char *argv[] __attribute__((unused))
     27  int   argc RTEMS_UNUSED,
     28  char *argv[] RTEMS_UNUSED
    2929)
    3030{
  • cpukit/libmisc/shell/main_whoami.c

    rc52568d rf97536d  
    2626
    2727static int rtems_shell_main_whoami(
    28   int   argc __attribute__((unused)),
    29   char *argv[] __attribute__((unused))
     28  int   argc RTEMS_UNUSED,
     29  char *argv[] RTEMS_UNUSED
    3030)
    3131{
  • cpukit/libmisc/shell/main_wkspaceinfo.c

    rc52568d rf97536d  
    3131
    3232static int rtems_shell_main_wkspace_info(
    33   int   argc __attribute__((unused)),
    34   char *argv[] __attribute__((unused))
     33  int   argc RTEMS_UNUSED,
     34  char *argv[] RTEMS_UNUSED
    3535)
    3636{
  • cpukit/libmisc/shell/shell_script.c

    rc52568d rf97536d  
    238238 */
    239239int rtems_shell_script_file(
    240   int   argc __attribute__((unused)),
     240  int   argc RTEMS_UNUSED,
    241241  char *argv[]
    242242)
  • cpukit/libmisc/shell/utils-cp.c

    rc52568d rf97536d  
    8686
    8787int
    88 copy_file(rtems_shell_cp_globals* cp_globals __attribute__((unused)), FTSENT *entp, int dne)
     88copy_file(rtems_shell_cp_globals* cp_globals RTEMS_UNUSED, FTSENT *entp, int dne)
    8989{
    9090#define MAX_READ max_read
     
    416416
    417417int
    418 preserve_fd_acls(int source_fd __attribute__((unused)), int dest_fd __attribute__((unused)))
     418preserve_fd_acls(int source_fd RTEMS_UNUSED, int dest_fd RTEMS_UNUSED)
    419419{
    420420#if 0
     
    442442
    443443int
    444 preserve_dir_acls(struct stat *fs __attribute__((unused)), char *source_dir __attribute__((unused)), char *dest_dir __attribute__((unused)))
     444preserve_dir_acls(struct stat *fs RTEMS_UNUSED, char *source_dir RTEMS_UNUSED, char *dest_dir RTEMS_UNUSED)
    445445{
    446446#if 0
  • cpukit/libmisc/shell/utils-ls.c

    rc52568d rf97536d  
    9393
    9494int
    95 printescaped(rtems_shell_ls_globals* globals __attribute__((unused)), const char *src)
     95printescaped(rtems_shell_ls_globals* globals RTEMS_UNUSED, const char *src)
    9696{
    9797        unsigned char c;
  • cpukit/libmisc/shell/verr.c

    rc52568d rf97536d  
    5959
    6060__dead void
    61 verr(jmp_buf* exit_jmp, int eval __attribute__((unused)), const char *fmt, _BSD_VA_LIST_ ap)
     61verr(jmp_buf* exit_jmp, int eval RTEMS_UNUSED, const char *fmt, _BSD_VA_LIST_ ap)
    6262{
    6363        int sverrno;
  • cpukit/libmisc/shell/verrx.c

    rc52568d rf97536d  
    5757
    5858__dead void
    59 verrx(jmp_buf* exit_jmp, int eval __attribute__((unused)), const char *fmt, _BSD_VA_LIST_ ap)
     59verrx(jmp_buf* exit_jmp, int eval RTEMS_UNUSED, const char *fmt, _BSD_VA_LIST_ ap)
    6060{
    6161#if 0
  • cpukit/libmisc/stackchk/check.c

    rc52568d rf97536d  
    183183 */
    184184bool rtems_stack_checker_create_extension(
    185   Thread_Control *running __attribute__((unused)),
     185  Thread_Control *running RTEMS_UNUSED,
    186186  Thread_Control *the_thread
    187187)
     
    277277 */
    278278void rtems_stack_checker_switch_extension(
    279   Thread_Control *running __attribute__((unused)),
    280   Thread_Control *heir __attribute__((unused))
     279  Thread_Control *running RTEMS_UNUSED,
     280  Thread_Control *heir RTEMS_UNUSED
    281281)
    282282{
  • cpukit/libnetworking/lib/tftpDriver.c

    rc52568d rf97536d  
    969969 */
    970970static int rtems_tftp_ftruncate(
    971     rtems_libio_t   *iop __attribute__((unused)),
    972     off_t            count __attribute__((unused))
     971    rtems_libio_t   *iop RTEMS_UNUSED,
     972    off_t            count RTEMS_UNUSED
    973973)
    974974{
  • cpukit/posix/src/_execve.c

    rc52568d rf97536d  
    2929
    3030int _execve(
    31   const char *path __attribute__((unused)),
    32   char *const argv[] __attribute__((unused)),
    33   char *const envp[] __attribute__((unused))
     31  const char *path,
     32  char *const argv[],
     33  char *const envp[]
    3434)
    3535{
     36  (void) path;
     37  (void) argv;
     38  (void) envp;
    3639  rtems_set_errno_and_return_minus_one( ENOSYS );
    3740}
  • cpukit/posix/src/aio_suspend.c

    rc52568d rf97536d  
    2828
    2929int aio_suspend(
    30   const struct aiocb  * const list[] __attribute__((unused)),
    31   int                     nent __attribute__((unused)),
    32   const struct timespec  *timeout __attribute__((unused))
     30  const struct aiocb  * const list[] RTEMS_UNUSED,
     31  int                     nent RTEMS_UNUSED,
     32  const struct timespec  *timeout RTEMS_UNUSED
    3333)
    3434{
  • cpukit/posix/src/alarm.c

    rc52568d rf97536d  
    3434 */
    3535static void _POSIX_signals_Alarm_TSR(
    36   Objects_Id      id __attribute__((unused)),
    37   void           *argument __attribute__((unused))
     36  Objects_Id      id RTEMS_UNUSED,
     37  void           *argument RTEMS_UNUSED
    3838)
    3939{
  • cpukit/posix/src/lio_listio.c

    rc52568d rf97536d  
    2828
    2929int lio_listio(
    30   int              mode __attribute__((unused)),
    31   struct aiocb    *__restrict const  list[__restrict] __attribute__((unused)),
    32   int              nent __attribute__((unused)),
    33   struct sigevent *__restrict sig __attribute__((unused))
     30  int              mode RTEMS_UNUSED,
     31  struct aiocb    *__restrict const  list[__restrict] RTEMS_UNUSED,
     32  int              nent RTEMS_UNUSED,
     33  struct sigevent *__restrict sig RTEMS_UNUSED
    3434)
    3535{
  • cpukit/posix/src/mmap.c

    rc52568d rf97536d  
    1919
    2020void *mmap(
    21   void   *addr __attribute__((unused)),
    22   size_t  lenhth __attribute__((unused)),
    23   int     prot __attribute__((unused)),
    24   int     flags __attribute__((unused)),
    25   int     fildes __attribute__((unused)),
     21  void   *addr,
     22  size_t  lenhth,
     23  int     prot,
     24  int     flags,
     25  int     fildes,
    2626  off_t   off
    2727)
    2828{
     29  (void) addr;
     30  (void) lenhth;
     31  (void) prot;
     32  (void) flags;
     33  (void) fildes;
     34  (void) off;
    2935  return MAP_FAILED;
    3036}
  • cpukit/posix/src/mprotect.c

    rc52568d rf97536d  
    3232
    3333int mprotect(
    34   void *addr __attribute__((unused)),
    35   size_t len __attribute__((unused)),
    36   int prot __attribute__((unused)) )
     34  void *addr,
     35  size_t len,
     36  int prot
     37)
    3738{
     39  (void) addr;
     40  (void) len;
     41  (void) prot;
    3842  return 0;
    3943}
  • cpukit/posix/src/mqueueopen.c

    rc52568d rf97536d  
    6363   * arguments to get to attr.
    6464   */
    65   mode_t                          mode RTEMS_COMPILER_UNUSED_ATTRIBUTE;
     65  mode_t                          mode RTEMS_UNUSED;
    6666
    6767  va_list                         arg;
  • cpukit/posix/src/munmap.c

    rc52568d rf97536d  
    1919
    2020int munmap(
    21   void   *addr __attribute__((unused)),
    22   size_t  length __attribute__((unused))
     21  void   *addr,
     22  size_t  length
    2323)
    2424{
     25  (void) addr;
     26  (void) length;
    2527  return -1;
    2628}
  • cpukit/posix/src/psignal.c

    rc52568d rf97536d  
    4848
    4949void _POSIX_signals_Abnormal_termination_handler(
    50   int signo __attribute__((unused)) )
     50  int signo RTEMS_UNUSED )
    5151{
    5252  exit( 1 );
  • cpukit/posix/src/pthread.c

    rc52568d rf97536d  
    104104 */
    105105void _POSIX_Threads_Sporadic_budget_TSR(
    106   Objects_Id      id __attribute__((unused)),
     106  Objects_Id      id RTEMS_UNUSED,
    107107  void           *argument
    108108)
     
    187187
    188188static bool _POSIX_Threads_Create_extension(
    189   Thread_Control *executing __attribute__((unused)),
     189  Thread_Control *executing RTEMS_UNUSED,
    190190  Thread_Control *created
    191191)
  • cpukit/posix/src/pthreadatfork.c

    rc52568d rf97536d  
    3737 */
    3838int pthread_atfork(
    39   void (*prepare)(void) __attribute__((unused)),
    40   void (*parent)(void) __attribute__((unused)),
    41   void (*child)(void) __attribute__((unused))
     39  void (*prepare)(void),
     40  void (*parent)(void),
     41  void (*child)(void)
    4242)
    4343{
     44  (void) prepare;
     45  (void) parent;
     46  (void) child;
    4447  rtems_set_errno_and_return_minus_one( ENOSYS );
    4548}
  • cpukit/posix/src/sched_getparam.c

    rc52568d rf97536d  
    2929 */
    3030int sched_getparam(
    31   pid_t                     pid __attribute__((unused)),
    32   struct sched_param       *param __attribute__((unused))
     31  pid_t                     pid RTEMS_UNUSED,
     32  struct sched_param       *param RTEMS_UNUSED
    3333)
    3434{
  • cpukit/posix/src/sched_getscheduler.c

    rc52568d rf97536d  
    3030
    3131int sched_getscheduler(
    32   pid_t                     pid __attribute__((unused))
     32  pid_t                     pid RTEMS_UNUSED
    3333)
    3434{
  • cpukit/posix/src/sched_setparam.c

    rc52568d rf97536d  
    3030
    3131int sched_setparam(
    32   pid_t                     pid __attribute__((unused)),
    33   const struct sched_param *param __attribute__((unused))
     32  pid_t                     pid RTEMS_UNUSED,
     33  const struct sched_param *param RTEMS_UNUSED
    3434)
    3535{
  • cpukit/posix/src/sched_setscheduler.c

    rc52568d rf97536d  
    2828
    2929int sched_setscheduler(
    30   pid_t                     pid __attribute__((unused)),
    31   int                       policy __attribute__((unused)),
    32   const struct sched_param *param __attribute__((unused))
     30  pid_t                     pid RTEMS_UNUSED,
     31  int                       policy RTEMS_UNUSED,
     32  const struct sched_param *param RTEMS_UNUSED
    3333)
    3434{
  • cpukit/posix/src/semopen.c

    rc52568d rf97536d  
    5656   * arguments to get to attr.
    5757   */
    58   mode_t                     mode RTEMS_COMPILER_UNUSED_ATTRIBUTE;
     58  mode_t                     mode RTEMS_UNUSED;
    5959
    6060  va_list                    arg;
  • cpukit/posix/src/timertsr.c

    rc52568d rf97536d  
    3333 */
    3434void _POSIX_Timer_TSR(
    35   Objects_Id timer __attribute__((unused)),
     35  Objects_Id timer RTEMS_UNUSED,
    3636  void *data)
    3737{
  • cpukit/posix/src/ualarm.c

    rc52568d rf97536d  
    4141
    4242static void _POSIX_signals_Ualarm_TSR(
    43   Objects_Id      id __attribute__((unused)),
    44   void           *argument __attribute__((unused))
     43  Objects_Id      id RTEMS_UNUSED,
     44  void           *argument RTEMS_UNUSED
    4545)
    4646{
  • cpukit/score/include/rtems/score/basedefs.h

    rc52568d rf97536d  
    218218 */
    219219#if defined(__GNUC__)
    220   #define RTEMS_COMPILER_UNUSED_ATTRIBUTE __attribute__((unused))
    221 #else
    222   #define RTEMS_COMPILER_UNUSED_ATTRIBUTE
    223 #endif
     220  #define RTEMS_UNUSED __attribute__((__unused__))
     221#else
     222  #define RTEMS_UNUSED
     223#endif
     224
     225/* Provided for backward compatibility */
     226#define RTEMS_COMPILER_UNUSED_ATTRIBUTE RTEMS_UNUSED
    224227
    225228/**
  • cpukit/score/include/rtems/score/objectimpl.h

    rc52568d rf97536d  
    775775  Objects_Id id
    776776#else
    777   Objects_Id id __attribute__((unused))
     777  Objects_Id id RTEMS_UNUSED
    778778#endif
    779779)
  • cpukit/score/include/rtems/score/sysstate.h

    rc52568d rf97536d  
    8181  bool  is_multiprocessing
    8282#else
    83   bool  is_multiprocessing __attribute__((unused))
     83  bool  is_multiprocessing RTEMS_UNUSED
    8484#endif
    8585)
  • cpukit/score/src/corebarrierrelease.c

    rc52568d rf97536d  
    3030  CORE_barrier_API_mp_support_callout  api_barrier_mp_support
    3131#else
    32   Objects_Id                           id __attribute__((unused)),
    33   CORE_barrier_API_mp_support_callout  api_barrier_mp_support __attribute__((unused))
     32  Objects_Id                           id RTEMS_UNUSED,
     33  CORE_barrier_API_mp_support_callout  api_barrier_mp_support RTEMS_UNUSED
    3434#endif
    3535)
  • cpukit/score/src/coremsgbroadcast.c

    rc52568d rf97536d  
    3030    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support,
    3131  #else
    32     Objects_Id                                 id __attribute__((unused)),
    33     CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
     32    Objects_Id                                 id RTEMS_UNUSED,
     33    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support RTEMS_UNUSED,
    3434  #endif
    3535  uint32_t                                  *count,
  • cpukit/score/src/coremsgsubmit.c

    rc52568d rf97536d  
    3535    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support,
    3636  #else
    37     CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support  __attribute__((unused)),
     37    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support  RTEMS_UNUSED,
    3838  #endif
    3939  CORE_message_queue_Submit_types            submit_type,
  • cpukit/score/src/coremutexsurrender.c

    rc52568d rf97536d  
    9292  CORE_mutex_API_mp_support_callout  api_mutex_mp_support,
    9393#else
    94   Objects_Id                         id __attribute__((unused)),
    95   CORE_mutex_API_mp_support_callout  api_mutex_mp_support __attribute__((unused)),
     94  Objects_Id                         id RTEMS_UNUSED,
     95  CORE_mutex_API_mp_support_callout  api_mutex_mp_support RTEMS_UNUSED,
    9696#endif
    9797  ISR_lock_Context                  *lock_context
  • cpukit/score/src/heapextend.c

    rc52568d rf97536d  
    122122  void *extend_area_begin_ptr,
    123123  uintptr_t extend_area_size,
    124   uintptr_t unused __attribute__((unused))
     124  uintptr_t unused RTEMS_UNUSED
    125125)
    126126{
  • cpukit/score/src/heapgetinfo.c

    rc52568d rf97536d  
    2525
    2626static bool _Heap_Get_information_visitor(
    27   const Heap_Block *block __attribute__((unused)),
     27  const Heap_Block *block RTEMS_UNUSED,
    2828  uintptr_t block_size,
    2929  bool block_is_used,
  • cpukit/score/src/heapnoextend.c

    rc52568d rf97536d  
    2828
    2929uintptr_t _Heap_No_extend(
    30   Heap_Control *unused_0 __attribute__((unused)),
    31   void *unused_1 __attribute__((unused)),
    32   uintptr_t unused_2 __attribute__((unused)),
    33   uintptr_t unused_3 __attribute__((unused))
     30  Heap_Control *unused_0 RTEMS_UNUSED,
     31  void *unused_1 RTEMS_UNUSED,
     32  uintptr_t unused_2 RTEMS_UNUSED,
     33  uintptr_t unused_3 RTEMS_UNUSED
    3434)
    3535{
  • cpukit/score/src/threadqflush.c

    rc52568d rf97536d  
    2727  Thread_queue_Flush_callout  remote_extract_callout,
    2828#else
    29   Thread_queue_Flush_callout  remote_extract_callout __attribute__((unused)),
     29  Thread_queue_Flush_callout  remote_extract_callout RTEMS_UNUSED,
    3030#endif
    3131  uint32_t                    status
  • testsuites/libtests/devfs04/test_driver.c

    rc52568d rf97536d  
    3737rtems_device_driver testDriver_initialize(
    3838  rtems_device_major_number major,
    39   rtems_device_minor_number minor __attribute__((unused)),
    40   void *pargp __attribute__((unused))
     39  rtems_device_minor_number minor RTEMS_UNUSED,
     40  void *pargp RTEMS_UNUSED
    4141)
    4242{
     
    7474 */
    7575rtems_device_driver testDriver_open(
    76   rtems_device_major_number major __attribute__((unused)),
    77   rtems_device_minor_number minor __attribute__((unused)),
    78   void *pargp __attribute__((unused))
     76  rtems_device_major_number major RTEMS_UNUSED,
     77  rtems_device_minor_number minor RTEMS_UNUSED,
     78  void *pargp RTEMS_UNUSED
    7979)
    8080{
     
    9595 */
    9696rtems_device_driver testDriver_close(
    97   rtems_device_major_number major __attribute__((unused)),
    98   rtems_device_minor_number minor __attribute__((unused)),
    99   void *pargp __attribute__((unused))
     97  rtems_device_major_number major RTEMS_UNUSED,
     98  rtems_device_minor_number minor RTEMS_UNUSED,
     99  void *pargp RTEMS_UNUSED
    100100)
    101101{
     
    116116 */
    117117rtems_device_driver testDriver_read(
    118   rtems_device_major_number major __attribute__((unused)),
    119   rtems_device_minor_number minor __attribute__((unused)),
     118  rtems_device_major_number major RTEMS_UNUSED,
     119  rtems_device_minor_number minor RTEMS_UNUSED,
    120120  void *pargp
    121121)
     
    148148 */
    149149rtems_device_driver testDriver_write(
    150   rtems_device_major_number major __attribute__((unused)),
    151   rtems_device_minor_number minor __attribute__((unused)),
     150  rtems_device_major_number major RTEMS_UNUSED,
     151  rtems_device_minor_number minor RTEMS_UNUSED,
    152152  void *pargp
    153153)
     
    181181
    182182rtems_device_driver testDriver_control(
    183   rtems_device_major_number major __attribute__((unused)),
    184   rtems_device_minor_number minor __attribute__((unused)),
    185   void *pargp __attribute__((unused))
     183  rtems_device_major_number major RTEMS_UNUSED,
     184  rtems_device_minor_number minor RTEMS_UNUSED,
     185  void *pargp RTEMS_UNUSED
    186186)
    187187{
  • testsuites/libtests/deviceio01/test_driver.c

    rc52568d rf97536d  
    3636rtems_device_driver testDriver_initialize(
    3737  rtems_device_major_number major,
    38   rtems_device_minor_number minor __attribute__((unused)),
    39   void *pargp __attribute__((unused))
     38  rtems_device_minor_number minor RTEMS_UNUSED,
     39  void *pargp RTEMS_UNUSED
    4040)
    4141{
     
    7373 */
    7474rtems_device_driver testDriver_open(
    75   rtems_device_major_number major __attribute__((unused)),
    76   rtems_device_minor_number minor __attribute__((unused)),
    77   void *pargp __attribute__((unused))
     75  rtems_device_major_number major RTEMS_UNUSED,
     76  rtems_device_minor_number minor RTEMS_UNUSED,
     77  void *pargp RTEMS_UNUSED
    7878)
    7979{
     
    9494 */
    9595rtems_device_driver testDriver_close(
    96   rtems_device_major_number major __attribute__((unused)),
    97   rtems_device_minor_number minor __attribute__((unused)),
    98   void *pargp __attribute__((unused))
     96  rtems_device_major_number major RTEMS_UNUSED,
     97  rtems_device_minor_number minor RTEMS_UNUSED,
     98  void *pargp RTEMS_UNUSED
    9999)
    100100{
     
    115115 */
    116116rtems_device_driver testDriver_read(
    117   rtems_device_major_number major __attribute__((unused)),
    118   rtems_device_minor_number minor __attribute__((unused)),
     117  rtems_device_major_number major RTEMS_UNUSED,
     118  rtems_device_minor_number minor RTEMS_UNUSED,
    119119  void *pargp
    120120)
     
    147147 */
    148148rtems_device_driver testDriver_write(
    149   rtems_device_major_number major __attribute__((unused)),
    150   rtems_device_minor_number minor __attribute__((unused)),
     149  rtems_device_major_number major RTEMS_UNUSED,
     150  rtems_device_minor_number minor RTEMS_UNUSED,
    151151  void *pargp
    152152)
     
    180180
    181181rtems_device_driver testDriver_control(
    182   rtems_device_major_number major __attribute__((unused)),
    183   rtems_device_minor_number minor __attribute__((unused)),
    184   void *pargp __attribute__((unused))
     182  rtems_device_major_number major RTEMS_UNUSED,
     183  rtems_device_minor_number minor RTEMS_UNUSED,
     184  void *pargp RTEMS_UNUSED
    185185)
    186186{
  • testsuites/psxtests/psxconfig01/init.c

    rc52568d rf97536d  
    219219
    220220#if !defined(RTEMS_SMP)
    221 static void task_var_dtor(void *var __attribute__((unused)))
     221static void task_var_dtor(void *var RTEMS_UNUSED)
    222222{
    223223  /* Do nothing */
     
    225225#endif
    226226
    227 static void *posix_thread(void *arg __attribute__((unused)))
     227static void *posix_thread(void *arg RTEMS_UNUSED)
    228228{
    229229  rtems_test_assert(0);
    230230}
    231231
    232 static void posix_key_dtor(void *key __attribute__((unused)))
     232static void posix_key_dtor(void *key RTEMS_UNUSED)
    233233{
    234234  /* Do nothing */
  • testsuites/sptests/spfatal_support/consume_sems.c

    rc52568d rf97536d  
    1616/* forward declarations to avoid warnings */
    1717rtems_device_driver consume_semaphores_initialize(
    18   rtems_device_major_number major __attribute__((unused)),
    19   rtems_device_minor_number minor __attribute__((unused)),
    20   void *pargp __attribute__((unused))
     18  rtems_device_major_number major RTEMS_UNUSED,
     19  rtems_device_minor_number minor RTEMS_UNUSED,
     20  void *pargp RTEMS_UNUSED
    2121);
    2222
     
    2525
    2626rtems_device_driver consume_semaphores_initialize(
    27   rtems_device_major_number major __attribute__((unused)),
    28   rtems_device_minor_number minor __attribute__((unused)),
    29   void *pargp __attribute__((unused))
     27  rtems_device_major_number major RTEMS_UNUSED,
     28  rtems_device_minor_number minor RTEMS_UNUSED,
     29  void *pargp RTEMS_UNUSED
    3030)
    3131{
  • testsuites/sptests/spfatal_support/system.h

    rc52568d rf97536d  
    4343
    4444rtems_device_driver consume_semaphores_initialize(
    45   rtems_device_major_number major __attribute__((unused)),
    46   rtems_device_minor_number minor __attribute__((unused)),
    47   void *pargp __attribute__((unused))
     45  rtems_device_major_number major RTEMS_UNUSED,
     46  rtems_device_minor_number minor RTEMS_UNUSED,
     47  void *pargp RTEMS_UNUSED
    4848);
    4949
  • testsuites/tmtests/tmoverhd/dumrtems.h

    rc52568d rf97536d  
    248248
    249249#if defined(__GNUC__)
    250 #define RTEMS_GCC_NOWARN_UNUSED __attribute__((unused))
     250#define RTEMS_GCC_NOWARN_UNUSED RTEMS_UNUSED
    251251#else
    252252#define RTEMS_GCC_NOWARN_UNUSED
Note: See TracChangeset for help on using the changeset viewer.