This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] vfprintf: Add test case for user-defined types and format specifiers
On Jun 29 2017, Florian Weimer <fweimer@redhat.com> wrote:
> On 06/29/2017 02:39 PM, Andreas Schwab wrote:
>> On Jun 29 2017, Florian Weimer <fweimer@redhat.com> wrote:
>>
>>> The need for the wint_t cast looks like a GCC bug.
>>
>> %lc wants wint_t.
>
> Sure, but why warn about this?
Because the standard says so.
> I doubt there are any architectures which define wchar_t and wint_t in
> such a way that the variable arguments promotion diverges.
The standard does not make that distinction.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."