[PATCH v21 18/27] test: remove use of VLAs for Windows built code in bitset tests
Stephen Hemminger
stephen at networkplumber.org
Wed Feb 5 17:43:48 CET 2025
On Tue, 4 Feb 2025 12:57:09 -0800
Andre Muezerie <andremue at linux.microsoft.com> wrote:
> +#if defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION >= 110000)
> +#pragma GCC diagnostic push
> +#pragma GCC diagnostic ignored "-Warray-bounds"
> +#endif
>
> + /* gcc is giving false positives here when code is optimized */
> rte_bitset_copy(reference, bitset, size);
>
> +#if defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION >= 110000)
> +#pragma GCC diagnostic pop
> +#endif
> +
>
Any change requiring pragma workaround is suspect.
What happens with Gcc 15? and ASAN
More information about the dev
mailing list