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> #include <errno.h>
int __brk( int __brk(
const void *endds const void *endds __attribute__((unused))
) )
{ {
errno = EINVAL; errno = EINVAL;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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