[rtems commit] xz: Suppress attribute warnings
Sebastian Huber
sebh at rtems.org
Thu Jul 6 13:11:58 UTC 2017
Module: rtems
Branch: master
Commit: 71943dd4d2abcecbd3404f87cf9a12df46ed7bcc
Changeset: http://git.rtems.org/rtems/commit/?id=71943dd4d2abcecbd3404f87cf9a12df46ed7bcc
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jul 5 08:15:34 2017 +0200
xz: Suppress attribute warnings
Update #2909.
---
cpukit/libmisc/xz/xz_dec_lzma2.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/cpukit/libmisc/xz/xz_dec_lzma2.c b/cpukit/libmisc/xz/xz_dec_lzma2.c
index 08c3c80..6de808c 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)
More information about the vc
mailing list