diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-02-19 10:58:51 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-02-20 04:04:25 +0000 |
commit | 31861f663a440df498bdb7788fa43aa9d03133c5 (patch) | |
tree | 358f12f0f419f7471ac38aa788fd5adba68e03b0 /src/system.h | |
parent | 04b035670de49429d48dea726125caa613c1629f (diff) | |
download | coreutils-31861f663a440df498bdb7788fa43aa9d03133c5.tar.xz |
maint: cleanup up various uses of __attribute__
* src/cfg.mk (sc_prohibit-gl-attributes): Disallow the __attribute()
form without trailing underscores as that is not elided where required.
Also ensure we use gnulib macros rather than defining our own.
* src/system.h: Remove gnulib provided macros.
* src/chown-core.c: Likewise.
* src/chroot.c: Likewise.
* src/copy.c: Likewise.
* src/csplit.c: Likewise.
* src/dd.c: Likewise.
* src/expr.c: Likewise.
* src/extent-scan.c: Likewise.
* src/factor.c: Likewise.
* src/ls.c: Likewise.
* src/od.c: Likewise.
* src/paste.c: Likewise.
* src/ptx.c: Likewise.
* src/sort.c: Likewise.
* src/stat.c: Likewise.
* src/stty.c: Likewise.
* src/system.h: Likewise.
* src/tac.c: Likewise.
* src/test.c: Likewise.
* src/tsort.c: Likewise.
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/system.h b/src/system.h index 1677999ef..0605a2f2e 100644 --- a/src/system.h +++ b/src/system.h @@ -425,10 +425,6 @@ enum # define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) #endif -#ifndef ATTRIBUTE_UNUSED -# define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) -#endif - /* The warn_unused_result attribute appeared first in gcc-3.4.0 */ #undef ATTRIBUTE_WARN_UNUSED_RESULT #if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4) |