[Development] MinGW with UCRT and Qt

Björn Schäpers qt-maillist at hazardy.de
Thu Feb 10 01:35:00 CET 2022


I'm upgrading my build environment and switched my MinGW GCC from MSVCRT to 
UCRT. I'm not very far in compiling Qt, but get the following warnings:

qdatetime.cpp:2372:35: warning: 'tzname' is deprecated: Only provided for source 
compatibility; this variable might not always be accurate when linking to UCRT. 
     return QString::fromLocal8Bit(tzname[isDst]);

It seems to me that we should use the #if defined(Q_CC_MSVC) path.

What would be the best way for that? I don't think you want a #if 
defined(Q_CC_MSVC) || defined(_UCRT), or do you? Are there any plans to adapt to 

Kind regards,

More information about the Development mailing list