diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-05 08:15:34 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-05 08:15:34 +0200 |
commit | 71943dd4d2abcecbd3404f87cf9a12df46ed7bcc (patch) | |
tree | 88fa03fcc040ef93e35108862c9423ba7613db4c | |
parent | score: Fix format (diff) | |
download | rtems-71943dd4d2abcecbd3404f87cf9a12df46ed7bcc.tar.bz2 |
xz: Suppress attribute warnings
Update #2909.
-rw-r--r-- | cpukit/libmisc/xz/xz_dec_lzma2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/libmisc/xz/xz_dec_lzma2.c b/cpukit/libmisc/xz/xz_dec_lzma2.c index 08c3c80499..6de808c5b3 100644 --- a/cpukit/libmisc/xz/xz_dec_lzma2.c +++ b/cpukit/libmisc/xz/xz_dec_lzma2.c @@ -474,6 +474,10 @@ static inline bool rc_is_finished(const struct rc_dec *rc) return rc->code == 0; } +#ifdef __rtems__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wattributes" +#endif /* __rtems__ */ /* Read the next input byte if needed. */ static __always_inline void rc_normalize(struct rc_dec *rc) { @@ -548,6 +552,9 @@ static __always_inline void rc_bittree_reverse(struct rc_dec *rc, } } while (++i < limit); } +#ifdef __rtems__ +#pragma GCC diagnostic pop +#endif /* __rtems__ */ /* Decode direct bits (fixed fifty-fifty probability) */ static inline void rc_direct(struct rc_dec *rc, uint32_t *dest, uint32_t limit) |