qmetatype: silence clang warning

Change-Id: Icaa43256a8eff27725d80d43fa44aba44d2ee84e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Tim Blechmann 2025-03-19 09:07:40 +08:00
parent cf2efa90fa
commit e72aea90fd

View File

@ -1129,7 +1129,8 @@ static constexpr struct : QMetaTypeModuleHelper
CONVERT_CBOR_AND_JSON(To)
switch (makePair(toTypeId, fromTypeId)) {
QT_WARNING_PUSH
QT_WARNING_DISABLE_CLANG("-Wtautological-compare")
// integral conversions
INTEGRAL_CONVERTER(Bool);
INTEGRAL_CONVERTER(Char);
@ -1667,6 +1668,7 @@ static constexpr struct : QMetaTypeModuleHelper
);
#endif
QT_WARNING_POP
}
return false;
}