[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 2/2] tools/tests/cpu-policy: disable -Wformat-overflow

On 09.08.2019 09:51, Roger Pau Monné  wrote:
On Fri, Aug 09, 2019 at 04:01:37AM +0200, Marek Marczykowski-Górecki wrote:
GCC9 complains about "%.12s" format with an argument having exactly 12
bytes and no terminating null character. This is intentional
construct, so disable the warning.

IIRC this is deemed as a gcc bug, albeit I'm not sure how we are
supposed to workaround it:


Disabling the check wholesale seems like a big hammer.


I had tried to observe this with a simple small example source
already, and failed. I can't tell whether that's because I've
tried with an almost plain upstream 9.1.0 (and others have some
extra patches in it), or whether that's because there's more to
it than just the array size and format specifier interaction.
Therefore it would help if someone who can actually see the
issue would be able to strip down the full test source here to
a simple reproducer. Depending on whether _that_ then also
fails with plain upstream 9.1.0 the bug would want to be
reported there or to the respective distro(s).


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.