bug-gnulib
[Top][All Lists]
Advanced

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

Re: %z for printf on mingw


From: Reuben Thomas
Subject: Re: %z for printf on mingw
Date: Tue, 24 Nov 2020 10:01:20 +0000

On Tue, 24 Nov 2020 at 00:43, Bruno Haible <bruno@clisp.org> 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 use format strings that contain the
PRI* macros from <inttypes.h>. This is because the mingw headers do ugly
things with these macros, and there are no two PRIdMAX macros (one for
__gnu_printf__ and one for __printf__) but only one.

Could this usefully be documented somewhere? (Although I struggle to think where I would look to find out why I was getting such warnings…)

--
https://rrt.sc3d.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]