Re: [Mingw-w64-public] gcc and g++ 12.2.0 use different attribute(format(...printf)) for builtins

2023-02-17 Thread Martin Storsjö
On Fri, 17 Feb 2023, Christian Franke wrote: When compiling this on MSYS2 UCRT64 with current mingw-w64-ucrt-x86_64-gcc 12.2.0-10, gcc and g++ results differ: #include #include #if !(defined(_UCRT) && !__USE_MINGW_ANSI_STDIO) #warning unexpected configuration #endif void f(size_t s, uint64

[Mingw-w64-public] gcc and g++ 12.2.0 use different attribute(format(...printf)) for builtins

2023-02-17 Thread Christian Franke
When compiling this on MSYS2 UCRT64 with current mingw-w64-ucrt-x86_64-gcc 12.2.0-10, gcc and g++ results differ: #include #include #if !(defined(_UCRT) && !__USE_MINGW_ANSI_STDIO) #warning unexpected configuration #endif void f(size_t s, uint64_t u) {   // gcc: No warning   // g++: "unknown