Add __attribute__((unused)) to function arguments.

This commit is contained in:
Ralf Corsepius
2009-09-15 09:42:46 +00:00
parent f50ebdb6c2
commit 2e8737ad5e
12 changed files with 22 additions and 14 deletions

View File

@@ -177,7 +177,7 @@ int fcntl(
#include <reent.h>
int _fcntl_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
int fd,
int cmd,
int arg

View File

@@ -128,8 +128,8 @@ static void rtems_malloc_boundary_at_free(
}
static void rtems_malloc_boundary_at_realloc(
void *pointer,
size_t size
void *pointer __attribute__((unused)),
size_t size __attribute__((unused))
)
{
/* this needs to be implemented */

View File

@@ -53,7 +53,7 @@ extern struct _reent * const _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
* -- ptorre 9/30/03
*/
bool newlib_create_hook(
rtems_tcb *current_task,
rtems_tcb *current_task __attribute__((unused)),
rtems_tcb *creating_task
)
{

View File

@@ -17,7 +17,7 @@
#include <rtems/bspIo.h>
int printk_plugin(
void *ignored,
void *ignored __attribute__((unused)),
const char *format,
...
)

View File

@@ -95,7 +95,7 @@ int _STAT_NAME(
#include <reent.h>
int _STAT_R_NAME(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)

View File

@@ -26,7 +26,9 @@
#include <rtems/libio.h>
int tcflow (int fd, int action)
int tcflow (
int fd __attribute__((unused)),
int action __attribute__((unused)))
{
return 0;
}

View File

@@ -26,7 +26,9 @@
#include <rtems/libio.h>
int tcflush (int fd, int queue)
int tcflush (
int fd __attribute__((unused)),
int queue __attribute__((unused)) )
{
return 0;
}

View File

@@ -26,7 +26,9 @@
#include <rtems/libio.h>
int tcsendbreak ( int fd, int duration )
int tcsendbreak (
int fd __attribute__((unused)),
int duration __attribute__((unused)) )
{
return 0;
}

View File

@@ -26,7 +26,9 @@
#include <rtems/libio.h>
int tcsetprgrp(int fd, pid_t pid)
int tcsetprgrp(
int fd __attribute__((unused)),
pid_t pid __attribute__((unused)) )
{
return 0;
}

View File

@@ -100,7 +100,7 @@ int unlink(
#include <reent.h>
int _unlink_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
const char *path
)
{

View File

@@ -64,9 +64,9 @@ bool rtems_filesystem_nodes_equal(
*/
bool file_systems_below_this_mountpoint(
const char *path,
const char *path __attribute__((unused)),
rtems_filesystem_location_info_t *fs_root_loc,
rtems_filesystem_mount_table_entry_t *fs_to_unmount
rtems_filesystem_mount_table_entry_t *fs_to_unmount __attribute__((unused))
)
{
rtems_chain_node *the_node;

View File

@@ -29,7 +29,7 @@
#include <reent.h>
_ssize_t _write_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
int fd,
const void *buf,
size_t nbytes