From a66971f980187efd03a84d340b80a7d3cf39deac Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Fri, 24 Apr 2020 10:44:40 +0200 Subject: vppinfra: selectively disable false-positive GCC-10 warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC-10 increase overflows-related warnings but is confused by SIMD operations. Type: fix Change-Id: Iafde754c2fbec60e2d0a328f295b1f5c156d8234 Signed-off-by: Benoît Ganne --- src/vppinfra/memcpy_avx2.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/vppinfra/memcpy_avx2.h') diff --git a/src/vppinfra/memcpy_avx2.h b/src/vppinfra/memcpy_avx2.h index caff4f6afde..f3f0d3f1943 100644 --- a/src/vppinfra/memcpy_avx2.h +++ b/src/vppinfra/memcpy_avx2.h @@ -50,6 +50,11 @@ #include #include +#include + +/* *INDENT-OFF* */ +WARN_OFF (stringop-overflow) +/* *INDENT-ON* */ static inline void clib_mov16 (u8 * dst, const u8 * src) @@ -228,6 +233,9 @@ clib_memcpy_fast (void *dst, const void *src, size_t n) goto COPY_BLOCK_128_BACK31; } +/* *INDENT-OFF* */ +WARN_ON (stringop-overflow) +/* *INDENT-ON* */ #endif /* included_clib_memcpy_avx2_h */ -- cgit 1.2.3-korg