[PATCH] pdump: fix build issue with GCC 12

Stephen Hemminger stephen at networkplumber.org
Tue Mar 28 21:25:06 CEST 2023


On Mon, 27 Mar 2023 07:07:12 +0000
Joyce Kong <joyce.kong at arm.com> wrote:

> Actually, this is an alias warning as -O3 enables strict alias.
> This patch fixes it by replacing 'dup_bufs' with '&dup_bufs[0]'
> as the compiler represents them differently.

This looks more like a compiler bug, since both should be
equivalent in C.


More information about the stable mailing list