Add __attribute__((unused)) to function arguments.

This commit is contained in:
Ralf Corsepius
2009-09-15 09:29:55 +00:00
parent ead79688da
commit 9e14ca27ef
21 changed files with 28 additions and 24 deletions

View File

@@ -23,7 +23,7 @@
#include <errno.h>
int __brk(
const void *endds
const void *endds __attribute__((unused))
)
{
errno = EINVAL;

View File

@@ -35,7 +35,7 @@
int gettimeofday(
struct timeval *tp,
void * __tz
void * __tz __attribute__((unused))
)
{
/* struct timezone* tzp = (struct timezone*) __tz; */
@@ -67,7 +67,7 @@ int gettimeofday(
*/
int _gettimeofday_r(
struct _reent *ignored_reentrancy_stuff,
struct _reent *ignored_reentrancy_stuff __attribute__((unused)),
struct timeval *tp,
struct timezone *tzp
)

View File

@@ -23,7 +23,7 @@
#include <errno.h>
void * __sbrk(
int incr
int incr __attribute__((unused))
)
{
errno = EINVAL;

View File

@@ -107,7 +107,7 @@ clock_t times(
#include <reent.h>
clock_t _times_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
struct tms *ptms
)
{

View File

@@ -20,7 +20,7 @@
#include <stdlib.h>
void *_calloc_r(
struct _reent *ignored,
struct _reent *ignored __attribute__((unused)),
size_t elements,
size_t size
)

View File

@@ -20,7 +20,7 @@
#include <stdlib.h>
void _free_r(
struct _reent *ignored,
struct _reent *ignored __attribute__((unused)),
void *ptr
)
{

View File

@@ -20,7 +20,7 @@
#include <stdlib.h>
void *_malloc_r(
struct _reent *ignored,
struct _reent *ignored __attribute__((unused)),
size_t size
)
{

View File

@@ -20,7 +20,7 @@
#include <stdlib.h>
void *_realloc_r(
struct _reent *ignored,
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)

View File

@@ -28,7 +28,7 @@
#include <sys/stat.h>
int _rename_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)

View File

@@ -22,7 +22,11 @@
const char *
rtems_assoc_name_bad(
#ifdef RTEMS_DEBUG
uint32_t bad_value
#else
uint32_t bad_value __attribute((unused))
#endif
)
{
#ifdef RTEMS_DEBUG

View File

@@ -49,7 +49,7 @@ int close(
#include <reent.h>
int _close_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
int fd
)
{

View File

@@ -95,13 +95,13 @@ __env_unlock(struct _reent *r)
#include <rtems/libio_.h>
void
__env_lock(struct _reent *r)
__env_lock(struct _reent *r __attribute__((unused)))
{
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
}
void
__env_unlock(struct _reent *r)
__env_unlock(struct _reent *r __attribute__((unused)))
{
rtems_semaphore_release( rtems_libio_semaphore );
}

View File

@@ -70,7 +70,7 @@ int fstat(
#include <reent.h>
int _fstat_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
int fd,
struct stat *buf
)

View File

@@ -21,8 +21,8 @@
*/
int getgroups(
int gidsetsize,
gid_t grouplist[]
int gidsetsize __attribute__((unused)),
gid_t grouplist[] __attribute__((unused))
)
{
return 0; /* no supplemental group ids */

View File

@@ -36,7 +36,7 @@ pid_t getpid( void )
#include <reent.h>
pid_t _getpid_r(
struct _reent *ptr
struct _reent *ptr __attribute__((unused))
)
{
return getpid();

View File

@@ -25,7 +25,7 @@
#include <sys/stat.h>
int _isatty_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
int fd
)
{

View File

@@ -95,7 +95,7 @@ int link(
#include <reent.h>
int _link_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)

View File

@@ -90,7 +90,7 @@ off_t lseek(
#include <reent.h>
off_t _lseek_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
int fd,
off_t offset,
int whence

View File

@@ -213,7 +213,7 @@ done:
#include <reent.h>
int _open_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
const char *buf,
int flags,
int mode

View File

@@ -60,7 +60,7 @@ ssize_t read(
#include <reent.h>
ssize_t _read_r(
struct _reent *ptr,
struct _reent *ptr __attribute__((unused)),
int fd,
void *buf,
size_t nbytes

View File

@@ -21,8 +21,8 @@
*/
int setpgid(
pid_t pid,
pid_t pgid
pid_t pid __attribute__((unused)),
pid_t pgid __attribute__((unused))
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );