diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-09-15 09:29:55 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-09-15 09:29:55 +0000 |
commit | 9e14ca27ef0ea4c2866b943556168e2d4fd25eb6 (patch) | |
tree | 35ed7be9a91fb9b5038daf5b35164a1a53536d1e | |
parent | 2009-09-15 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-9e14ca27ef0ea4c2866b943556168e2d4fd25eb6.tar.bz2 |
Add __attribute__((unused)) to function arguments.
-rw-r--r-- | cpukit/libcsupport/src/__brk.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/__gettod.c | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/__sbrk.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/__times.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/_calloc_r.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/_free_r.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/_malloc_r.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/_realloc_r.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/_rename_r.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/assocnamebad.c | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/close.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/envlock.c | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/fstat.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/getgroups.c | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/getpid.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/isatty_r.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/link.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/lseek.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/open.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/read.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/setpgid.c | 4 |
21 files changed, 28 insertions, 24 deletions
diff --git a/cpukit/libcsupport/src/__brk.c b/cpukit/libcsupport/src/__brk.c index 9082f3ab70..b282807703 100644 --- a/cpukit/libcsupport/src/__brk.c +++ b/cpukit/libcsupport/src/__brk.c @@ -23,7 +23,7 @@ #include <errno.h> int __brk( - const void *endds + const void *endds __attribute__((unused)) ) { errno = EINVAL; diff --git a/cpukit/libcsupport/src/__gettod.c b/cpukit/libcsupport/src/__gettod.c index 91ad5d67fd..17a1125b77 100644 --- a/cpukit/libcsupport/src/__gettod.c +++ b/cpukit/libcsupport/src/__gettod.c @@ -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 ) diff --git a/cpukit/libcsupport/src/__sbrk.c b/cpukit/libcsupport/src/__sbrk.c index 91260f1b24..a5b953d2a5 100644 --- a/cpukit/libcsupport/src/__sbrk.c +++ b/cpukit/libcsupport/src/__sbrk.c @@ -23,7 +23,7 @@ #include <errno.h> void * __sbrk( - int incr + int incr __attribute__((unused)) ) { errno = EINVAL; diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c index a9690f9541..c58e4cdcef 100644 --- a/cpukit/libcsupport/src/__times.c +++ b/cpukit/libcsupport/src/__times.c @@ -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 ) { diff --git a/cpukit/libcsupport/src/_calloc_r.c b/cpukit/libcsupport/src/_calloc_r.c index 98753f347f..5e1b43bb2f 100644 --- a/cpukit/libcsupport/src/_calloc_r.c +++ b/cpukit/libcsupport/src/_calloc_r.c @@ -20,7 +20,7 @@ #include <stdlib.h> void *_calloc_r( - struct _reent *ignored, + struct _reent *ignored __attribute__((unused)), size_t elements, size_t size ) diff --git a/cpukit/libcsupport/src/_free_r.c b/cpukit/libcsupport/src/_free_r.c index 8cc4a5f811..d5a91dc36a 100644 --- a/cpukit/libcsupport/src/_free_r.c +++ b/cpukit/libcsupport/src/_free_r.c @@ -20,7 +20,7 @@ #include <stdlib.h> void _free_r( - struct _reent *ignored, + struct _reent *ignored __attribute__((unused)), void *ptr ) { diff --git a/cpukit/libcsupport/src/_malloc_r.c b/cpukit/libcsupport/src/_malloc_r.c index 7b0f4eb93c..63ec6d1257 100644 --- a/cpukit/libcsupport/src/_malloc_r.c +++ b/cpukit/libcsupport/src/_malloc_r.c @@ -20,7 +20,7 @@ #include <stdlib.h> void *_malloc_r( - struct _reent *ignored, + struct _reent *ignored __attribute__((unused)), size_t size ) { diff --git a/cpukit/libcsupport/src/_realloc_r.c b/cpukit/libcsupport/src/_realloc_r.c index 16dce667f2..93c2d1bf9d 100644 --- a/cpukit/libcsupport/src/_realloc_r.c +++ b/cpukit/libcsupport/src/_realloc_r.c @@ -20,7 +20,7 @@ #include <stdlib.h> void *_realloc_r( - struct _reent *ignored, + struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) diff --git a/cpukit/libcsupport/src/_rename_r.c b/cpukit/libcsupport/src/_rename_r.c index 1395099b5e..d5e493f92e 100644 --- a/cpukit/libcsupport/src/_rename_r.c +++ b/cpukit/libcsupport/src/_rename_r.c @@ -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 ) diff --git a/cpukit/libcsupport/src/assocnamebad.c b/cpukit/libcsupport/src/assocnamebad.c index 155f08649d..f61f4e844d 100644 --- a/cpukit/libcsupport/src/assocnamebad.c +++ b/cpukit/libcsupport/src/assocnamebad.c @@ -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 diff --git a/cpukit/libcsupport/src/close.c b/cpukit/libcsupport/src/close.c index b9114f81e7..a99b852feb 100644 --- a/cpukit/libcsupport/src/close.c +++ b/cpukit/libcsupport/src/close.c @@ -49,7 +49,7 @@ int close( #include <reent.h> int _close_r( - struct _reent *ptr, + struct _reent *ptr __attribute__((unused)), int fd ) { diff --git a/cpukit/libcsupport/src/envlock.c b/cpukit/libcsupport/src/envlock.c index 687eb32753..32fb78f0d5 100644 --- a/cpukit/libcsupport/src/envlock.c +++ b/cpukit/libcsupport/src/envlock.c @@ -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 ); } diff --git a/cpukit/libcsupport/src/fstat.c b/cpukit/libcsupport/src/fstat.c index e388544f93..360583abfc 100644 --- a/cpukit/libcsupport/src/fstat.c +++ b/cpukit/libcsupport/src/fstat.c @@ -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 ) diff --git a/cpukit/libcsupport/src/getgroups.c b/cpukit/libcsupport/src/getgroups.c index c902c1f79d..7dfa44ff13 100644 --- a/cpukit/libcsupport/src/getgroups.c +++ b/cpukit/libcsupport/src/getgroups.c @@ -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 */ diff --git a/cpukit/libcsupport/src/getpid.c b/cpukit/libcsupport/src/getpid.c index 0def44f140..df47bb3be0 100644 --- a/cpukit/libcsupport/src/getpid.c +++ b/cpukit/libcsupport/src/getpid.c @@ -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(); diff --git a/cpukit/libcsupport/src/isatty_r.c b/cpukit/libcsupport/src/isatty_r.c index 105acc67d2..c6c214e2e5 100644 --- a/cpukit/libcsupport/src/isatty_r.c +++ b/cpukit/libcsupport/src/isatty_r.c @@ -25,7 +25,7 @@ #include <sys/stat.h> int _isatty_r( - struct _reent *ptr, + struct _reent *ptr __attribute__((unused)), int fd ) { diff --git a/cpukit/libcsupport/src/link.c b/cpukit/libcsupport/src/link.c index bcad166182..507b7bf1da 100644 --- a/cpukit/libcsupport/src/link.c +++ b/cpukit/libcsupport/src/link.c @@ -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 ) diff --git a/cpukit/libcsupport/src/lseek.c b/cpukit/libcsupport/src/lseek.c index 7146ae80e9..3e570e6b18 100644 --- a/cpukit/libcsupport/src/lseek.c +++ b/cpukit/libcsupport/src/lseek.c @@ -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 diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c index f45215ec0d..39be14a9e3 100644 --- a/cpukit/libcsupport/src/open.c +++ b/cpukit/libcsupport/src/open.c @@ -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 diff --git a/cpukit/libcsupport/src/read.c b/cpukit/libcsupport/src/read.c index 286edf3bab..db8d5fa515 100644 --- a/cpukit/libcsupport/src/read.c +++ b/cpukit/libcsupport/src/read.c @@ -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 diff --git a/cpukit/libcsupport/src/setpgid.c b/cpukit/libcsupport/src/setpgid.c index 26786cc552..60a9a5d521 100644 --- a/cpukit/libcsupport/src/setpgid.c +++ b/cpukit/libcsupport/src/setpgid.c @@ -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 ); |