Strict-aliasing rules are violated by cast to uint16_t* in flowgen.c and the calculated IP checksum is wrong on GCC 9 and GCC 10.
Signed-off-by: George Prekas <preka...@amazon.com> --- v2: * Instead of a compiler barrier, use a compiler flag. --- app/test-pmd/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index 7e9c7bdd6..5d24e807f 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -4,6 +4,7 @@ # override default name to drop the hyphen name = 'testpmd' cflags += '-Wno-deprecated-declarations' +cflags += '-fno-strict-aliasing' sources = files('5tswap.c', 'cmdline.c', 'cmdline_flow.c', -- 2.17.1