diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-03-24 09:38:01 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-03-24 09:38:01 +0000 |
commit | 80e239fb4679a6c52eebd168fa1be5baad3f409c (patch) | |
tree | 2e5b16444c1f290e8df59688657bc8a713bdc318 | |
parent | 2011-03-24 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-80e239fb4679a6c52eebd168fa1be5baad3f409c.tar.bz2 |
Add local version of __unused macro.
-rw-r--r-- | cpukit/libmisc/shell/hexdump-odsyntax.c | 5 | ||||
-rw-r--r-- | cpukit/libmisc/shell/main_dd.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/hexdump-odsyntax.c b/cpukit/libmisc/shell/hexdump-odsyntax.c index 24e8d59e73..18fd223f0a 100644 --- a/cpukit/libmisc/shell/hexdump-odsyntax.c +++ b/cpukit/libmisc/shell/hexdump-odsyntax.c @@ -61,6 +61,10 @@ __FBSDID("$FreeBSD: src/usr.bin/hexdump/odsyntax.c,v 1.17 2004/07/22 13:14:42 jo #define PADDING " " +#ifndef __unused +#define __unused __attribute((__unused__)) +#endif + #if RTEMS_REMOVED int odmode; #endif @@ -321,7 +325,6 @@ odformat(rtems_shell_hexdump_globals* globals, const char *fmt) } } } -#define __unused static const char * odformatfp(rtems_shell_hexdump_globals* globals, char fchar __unused, const char *fmt) diff --git a/cpukit/libmisc/shell/main_dd.c b/cpukit/libmisc/shell/main_dd.c index 930d382a97..b0e16fdf54 100644 --- a/cpukit/libmisc/shell/main_dd.c +++ b/cpukit/libmisc/shell/main_dd.c @@ -76,6 +76,10 @@ __FBSDID("$FreeBSD: src/bin/dd/dd.c,v 1.43 2004/08/15 19:10:05 rwatson Exp $"); #include "dd.h" #include "extern-dd.h" +#ifndef __unused +#define __unused __attribute((__unused__)) +#endif + #define DD_DEFFILEMODE 0 static void dd_close(rtems_shell_dd_globals* globals); |