diff options
author | dougb <dougb@FreeBSD.org> | 2009-06-25 19:52:45 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2009-06-25 19:52:45 +0000 |
commit | b4778c66fe0702e260f2af58a4f0a4e6fe844c1b (patch) | |
tree | f5b7716dfa0a57cae1b41ed6567edc0fa25c4bfd /contrib/bind9 | |
parent | af2f22ec88005ba67d66df04d2f27e935d14ba19 (diff) | |
download | FreeBSD-src-b4778c66fe0702e260f2af58a4f0a4e6fe844c1b.zip FreeBSD-src-b4778c66fe0702e260f2af58a4f0a4e6fe844c1b.tar.gz |
This is the solution that ISC committed after 9.6.1-release for
the gcc warning issue. It should be included in the next upstream
release.
Diffstat (limited to 'contrib/bind9')
-rw-r--r-- | contrib/bind9/lib/isc/ia64/include/isc/atomic.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/bind9/lib/isc/ia64/include/isc/atomic.h b/contrib/bind9/lib/isc/ia64/include/isc/atomic.h index 847c65d..275741b 100644 --- a/contrib/bind9/lib/isc/ia64/include/isc/atomic.h +++ b/contrib/bind9/lib/isc/ia64/include/isc/atomic.h @@ -31,6 +31,9 @@ * (e.g., 1 and -1)? */ static inline isc_int32_t +#ifdef __GNUC__ +__attribute__ ((unused)) +#endif isc_atomic_xadd(isc_int32_t *p, isc_int32_t val) { isc_int32_t prev, swapped; @@ -54,6 +57,9 @@ isc_atomic_xadd(isc_int32_t *p, isc_int32_t val) * This routine atomically stores the value 'val' in 'p'. */ static inline void +#ifdef __GNUC__ +__attribute__ ((unused)) +#endif isc_atomic_store(isc_int32_t *p, isc_int32_t val) { __asm__ volatile( @@ -70,6 +76,9 @@ isc_atomic_store(isc_int32_t *p, isc_int32_t val) * case. */ static inline isc_int32_t +#ifdef __GNUC__ +__attribute__ ((unused)) +#endif isc_atomic_cmpxchg(isc_int32_t *p, isc_int32_t cmpval, isc_int32_t val) { isc_int32_t ret; |