The original issue that required using pragma here to disable
stringop warnings is now handled at in config/meson.build
across all files.

Signed-off-by: Stephen Hemminger <[email protected]>
---
 lib/ring/rte_ring_elem_pvt.h | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/lib/ring/rte_ring_elem_pvt.h b/lib/ring/rte_ring_elem_pvt.h
index 29758d0bb8..3d680749ad 100644
--- a/lib/ring/rte_ring_elem_pvt.h
+++ b/lib/ring/rte_ring_elem_pvt.h
@@ -10,12 +10,6 @@
 #ifndef _RTE_RING_ELEM_PVT_H_
 #define _RTE_RING_ELEM_PVT_H_
 
-#if defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION >= 120000)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wstringop-overflow"
-#pragma GCC diagnostic ignored "-Wstringop-overread"
-#endif
-
 static __rte_always_inline void
 __rte_ring_enqueue_elems_32(void *ring_table, const void *obj_table,
        uint32_t size, uint32_t idx, uint32_t n)
@@ -500,8 +494,4 @@ __rte_ring_do_dequeue_elem(struct rte_ring *r, void 
*obj_table,
        return n;
 }
 
-#if defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION >= 120000)
-#pragma GCC diagnostic pop
-#endif
-
 #endif /* _RTE_RING_ELEM_PVT_H_ */
-- 
2.53.0

Reply via email to