[PATCH] xz: Suppress attribute warnings

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jul 5 06:16:12 UTC 2017


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 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)
-- 
2.12.3



More information about the devel mailing list