Re: [PATCH] tests: varlocs workaround format-overflow errors

2021-12-08 Thread Mark Wielaard
On Sat, Dec 04, 2021 at 10:27:29PM +0100, Mark Wielaard wrote: > In function ‘printf’, > inlined from ‘handle_attr’ at varlocs.c:932:3: > error: ‘%s’ directive argument is null [-Werror=format-overflow=] > > The warning is technically correct. A %s argument should not be > NULL. Although in pr

[PATCH] tests: varlocs workaround format-overflow errors

2021-12-04 Thread Mark Wielaard
In function ‘printf’, inlined from ‘handle_attr’ at varlocs.c:932:3: error: ‘%s’ directive argument is null [-Werror=format-overflow=] The warning is technically correct. A %s argument should not be NULL. Although in practice all implementations will print it as "(null)". Workaround this by si