forked from Imagelibrary/rtems
Add __attribute__((unused)) to function arguments.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
int __brk(
|
||||
const void *endds
|
||||
const void *endds __attribute__((unused))
|
||||
)
|
||||
{
|
||||
errno = EINVAL;
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
void * __sbrk(
|
||||
int incr
|
||||
int incr __attribute__((unused))
|
||||
)
|
||||
{
|
||||
errno = EINVAL;
|
||||
|
||||
@@ -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
|
||||
)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
void *_calloc_r(
|
||||
struct _reent *ignored,
|
||||
struct _reent *ignored __attribute__((unused)),
|
||||
size_t elements,
|
||||
size_t size
|
||||
)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
void _free_r(
|
||||
struct _reent *ignored,
|
||||
struct _reent *ignored __attribute__((unused)),
|
||||
void *ptr
|
||||
)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
void *_malloc_r(
|
||||
struct _reent *ignored,
|
||||
struct _reent *ignored __attribute__((unused)),
|
||||
size_t size
|
||||
)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
void *_realloc_r(
|
||||
struct _reent *ignored,
|
||||
struct _reent *ignored __attribute__((unused)),
|
||||
void *ptr,
|
||||
size_t size
|
||||
)
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -49,7 +49,7 @@ int close(
|
||||
#include <reent.h>
|
||||
|
||||
int _close_r(
|
||||
struct _reent *ptr,
|
||||
struct _reent *ptr __attribute__((unused)),
|
||||
int fd
|
||||
)
|
||||
{
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
int _isatty_r(
|
||||
struct _reent *ptr,
|
||||
struct _reent *ptr __attribute__((unused)),
|
||||
int fd
|
||||
)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user