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/factor.c | |
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/factor.c')
-rw-r--r-- | src/factor.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/factor.c b/src/factor.c index 8f1542a2f..257a7ed90 100644 --- a/src/factor.c +++ b/src/factor.c @@ -791,7 +791,7 @@ factor_using_division (uintmax_t *t1p, uintmax_t t1, uintmax_t t0, { for (;;) { - uintmax_t q1, q0, hi, lo ATTRIBUTE_UNUSED; + uintmax_t q1, q0, hi, lo _GL_UNUSED; q0 = t0 * primes_dtab[i].binv; umul_ppmm (hi, lo, q0, p); @@ -933,7 +933,7 @@ static const unsigned char binvert_table[128] = _q0 = (u0) * _di; \ if ((u1) >= (d)) \ { \ - uintmax_t _p1, _p0 ATTRIBUTE_UNUSED; \ + uintmax_t _p1, _p0 _GL_UNUSED; \ umul_ppmm (_p1, _p0, _q0, d); \ (q1) = ((u1) - _p1) * _di; \ (q0) = _q0; \ @@ -948,7 +948,7 @@ static const unsigned char binvert_table[128] = /* x B (mod n). */ #define redcify(r_prim, r, n) \ do { \ - uintmax_t _redcify_q ATTRIBUTE_UNUSED; \ + uintmax_t _redcify_q _GL_UNUSED; \ udiv_qrnnd (_redcify_q, r_prim, r, 0, n); \ } while (0) @@ -981,7 +981,7 @@ static const unsigned char binvert_table[128] = static inline uintmax_t mulredc (uintmax_t a, uintmax_t b, uintmax_t m, uintmax_t mi) { - uintmax_t rh, rl, q, th, tl ATTRIBUTE_UNUSED, xh; + uintmax_t rh, rl, q, th, tl _GL_UNUSED, xh; umul_ppmm (rh, rl, a, b); q = rl * mi; @@ -1001,7 +1001,7 @@ mulredc2 (uintmax_t *r1p, uintmax_t a1, uintmax_t a0, uintmax_t b1, uintmax_t b0, uintmax_t m1, uintmax_t m0, uintmax_t mi) { - uintmax_t r1, r0, q, p1, p0 ATTRIBUTE_UNUSED, t1, t0, s1, s0; + uintmax_t r1, r0, q, p1, p0 _GL_UNUSED, t1, t0, s1, s0; mi = -mi; assert ( (a1 >> (W_TYPE_SIZE - 1)) == 0); assert ( (b1 >> (W_TYPE_SIZE - 1)) == 0); @@ -1271,7 +1271,7 @@ prime_p (uintmax_t n) a_prim = s0 % n; else { - uintmax_t dummy ATTRIBUTE_UNUSED; + uintmax_t dummy _GL_UNUSED; udiv_qrnnd (dummy, a_prim, s1, s0, n); } } @@ -1803,7 +1803,7 @@ isqrt2 (uintmax_t nh, uintmax_t nl) /* Do we need more than one iteration? */ for (;;) { - uintmax_t r ATTRIBUTE_UNUSED; + uintmax_t r _GL_UNUSED; uintmax_t q, y; udiv_qrnnd (q, r, nh, nl, x); y = (x + q) / 2; |