Re: %z for printf on mingw

2020-11-24 Thread Reuben Thomas
On Tue, 24 Nov 2020 at 00:43, Bruno Haible wrote: > Indeed, we did not really pay attention to the distinction between > __gnu_printf__ (which denotes standards-compliant format strings) and > > This patch corrects the attributes. > Thanks, that's great! > Note: You may get warnings when you u

Re: %z for printf on mingw

2020-11-23 Thread Bruno Haible
Hi Reuben, > gnulib can #define __USE_MINGW_ANSI_STDIO so that %z is implemented, but > warnings are still generated for xasprintf (not for printf). > > As far as I can tell, this is because the > _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM machinery to choose the correct > attribute (__gnu_printf__ or __

%z for printf on mingw

2020-11-22 Thread Reuben Thomas
gnulib can #define __USE_MINGW_ANSI_STDIO so that %z is implemented, but warnings are still generated for xasprintf (not for printf). As far as I can tell, this is because the _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM machinery to choose the correct attribute (__gnu_printf__ or __printf__) for printf-lik