qTzName: suppress warning that tzname is deprecated with UCRT
Use the pre-existing MSVC code path, which uses UCRT. warning: 'tzname' is deprecated: Only provided for source compatibility; this variable might not always be accurate when linking to UCRT. [-Wdeprecated-declarations] Change-Id: I8f3ce163ccc5408cac39fffd178dc618f1a8f034 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> (cherry picked from commit eedb715ece5beabd1db731d0d003cf8112360f7c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
55aecf2e2c
commit
5306eac755
@ -404,7 +404,7 @@ QString qTzName(int dstIndex)
|
|||||||
{
|
{
|
||||||
char name[512];
|
char name[512];
|
||||||
bool ok;
|
bool ok;
|
||||||
#if defined(Q_CC_MSVC)
|
#if defined(_UCRT) // i.e., MSVC and MinGW-UCRT
|
||||||
size_t s = 0;
|
size_t s = 0;
|
||||||
{
|
{
|
||||||
const auto locker = qt_scoped_lock(environmentMutex);
|
const auto locker = qt_scoped_lock(environmentMutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user