From 2e8737ad5efaafec7c831bd3d92514926c8a78df Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 15 Sep 2009 09:42:46 +0000 Subject: Add __attribute__((unused)) to function arguments. --- cpukit/libcsupport/src/fcntl.c | 2 +- cpukit/libcsupport/src/malloc_boundary.c | 4 ++-- cpukit/libcsupport/src/newlibc_reent.c | 2 +- cpukit/libcsupport/src/printk_plugin.c | 2 +- cpukit/libcsupport/src/stat.c | 2 +- cpukit/libcsupport/src/tcflow.c | 4 +++- cpukit/libcsupport/src/tcflush.c | 4 +++- cpukit/libcsupport/src/tcsendbreak.c | 4 +++- cpukit/libcsupport/src/tcsetpgrp.c | 4 +++- cpukit/libcsupport/src/unlink.c | 2 +- cpukit/libcsupport/src/unmount.c | 4 ++-- cpukit/libcsupport/src/write_r.c | 2 +- 12 files changed, 22 insertions(+), 14 deletions(-) (limited to 'cpukit') diff --git a/cpukit/libcsupport/src/fcntl.c b/cpukit/libcsupport/src/fcntl.c index 641c25b1ae..e40cba59f5 100644 --- a/cpukit/libcsupport/src/fcntl.c +++ b/cpukit/libcsupport/src/fcntl.c @@ -177,7 +177,7 @@ int fcntl( #include int _fcntl_r( - struct _reent *ptr, + struct _reent *ptr __attribute__((unused)), int fd, int cmd, int arg diff --git a/cpukit/libcsupport/src/malloc_boundary.c b/cpukit/libcsupport/src/malloc_boundary.c index 51d6fcc615..3a90cf15ee 100644 --- a/cpukit/libcsupport/src/malloc_boundary.c +++ b/cpukit/libcsupport/src/malloc_boundary.c @@ -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 */ diff --git a/cpukit/libcsupport/src/newlibc_reent.c b/cpukit/libcsupport/src/newlibc_reent.c index ba8078a135..f4cdc0d1d1 100644 --- a/cpukit/libcsupport/src/newlibc_reent.c +++ b/cpukit/libcsupport/src/newlibc_reent.c @@ -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 ) { diff --git a/cpukit/libcsupport/src/printk_plugin.c b/cpukit/libcsupport/src/printk_plugin.c index bfe4c89bbe..31c163535a 100644 --- a/cpukit/libcsupport/src/printk_plugin.c +++ b/cpukit/libcsupport/src/printk_plugin.c @@ -17,7 +17,7 @@ #include int printk_plugin( - void *ignored, + void *ignored __attribute__((unused)), const char *format, ... ) diff --git a/cpukit/libcsupport/src/stat.c b/cpukit/libcsupport/src/stat.c index 5e26f94322..1b90b02c47 100644 --- a/cpukit/libcsupport/src/stat.c +++ b/cpukit/libcsupport/src/stat.c @@ -95,7 +95,7 @@ int _STAT_NAME( #include int _STAT_R_NAME( - struct _reent *ptr, + struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) diff --git a/cpukit/libcsupport/src/tcflow.c b/cpukit/libcsupport/src/tcflow.c index a1e054482c..fc00d14d29 100644 --- a/cpukit/libcsupport/src/tcflow.c +++ b/cpukit/libcsupport/src/tcflow.c @@ -26,7 +26,9 @@ #include -int tcflow (int fd, int action) +int tcflow ( + int fd __attribute__((unused)), + int action __attribute__((unused))) { return 0; } diff --git a/cpukit/libcsupport/src/tcflush.c b/cpukit/libcsupport/src/tcflush.c index 0335b94e8a..b05a88e8c0 100644 --- a/cpukit/libcsupport/src/tcflush.c +++ b/cpukit/libcsupport/src/tcflush.c @@ -26,7 +26,9 @@ #include -int tcflush (int fd, int queue) +int tcflush ( + int fd __attribute__((unused)), + int queue __attribute__((unused)) ) { return 0; } diff --git a/cpukit/libcsupport/src/tcsendbreak.c b/cpukit/libcsupport/src/tcsendbreak.c index af7ea4c85b..300e7a8f85 100644 --- a/cpukit/libcsupport/src/tcsendbreak.c +++ b/cpukit/libcsupport/src/tcsendbreak.c @@ -26,7 +26,9 @@ #include -int tcsendbreak ( int fd, int duration ) +int tcsendbreak ( + int fd __attribute__((unused)), + int duration __attribute__((unused)) ) { return 0; } diff --git a/cpukit/libcsupport/src/tcsetpgrp.c b/cpukit/libcsupport/src/tcsetpgrp.c index be3c900ad4..795d90131b 100644 --- a/cpukit/libcsupport/src/tcsetpgrp.c +++ b/cpukit/libcsupport/src/tcsetpgrp.c @@ -26,7 +26,9 @@ #include -int tcsetprgrp(int fd, pid_t pid) +int tcsetprgrp( + int fd __attribute__((unused)), + pid_t pid __attribute__((unused)) ) { return 0; } diff --git a/cpukit/libcsupport/src/unlink.c b/cpukit/libcsupport/src/unlink.c index 43b1db5705..29096d3e6f 100644 --- a/cpukit/libcsupport/src/unlink.c +++ b/cpukit/libcsupport/src/unlink.c @@ -100,7 +100,7 @@ int unlink( #include int _unlink_r( - struct _reent *ptr, + struct _reent *ptr __attribute__((unused)), const char *path ) { diff --git a/cpukit/libcsupport/src/unmount.c b/cpukit/libcsupport/src/unmount.c index 774df9931d..60cfd12416 100644 --- a/cpukit/libcsupport/src/unmount.c +++ b/cpukit/libcsupport/src/unmount.c @@ -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; diff --git a/cpukit/libcsupport/src/write_r.c b/cpukit/libcsupport/src/write_r.c index 504cb10a43..ad142a7364 100644 --- a/cpukit/libcsupport/src/write_r.c +++ b/cpukit/libcsupport/src/write_r.c @@ -29,7 +29,7 @@ #include _ssize_t _write_r( - struct _reent *ptr, + struct _reent *ptr __attribute__((unused)), int fd, const void *buf, size_t nbytes -- cgit v1.2.3