Re: [PATCH] include/trace/events/wbt.h: Suppress a compiler warning
From: Christoph Hellwig <hch@lst.de> Date: 2018-06-29 08:34:04
On Wed, Jun 27, 2018 at 01:22:34PM -0700, Bart Van Assche wrote:
This patch avoids that the following warning appears when building
with gcc 8 and W=1:
./include/trace/events/wbt.h:36:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
I really don't think this is the right fix. Note that the trace
code allows for dynamic arrays using __dynamic_array(), so the best idea
might be to switch to that.