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.
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…)