unreachable: silence warning with clang-cl

clang-cl does not warn about return after unreachable, but would warn
about the unused variable after return.

Pick-to: 6.8 6.9
Change-Id: Ia0fcff4f536d51d56eb915a9130cc3f72437d8d1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Tim Blechmann 2025-03-07 11:40:59 +08:00
parent aa8e8ffd32
commit 1bdf5059ce

View File

@ -78,7 +78,9 @@
# if _MSC_VER < 1938 // stdext is deprecated since VS 2022 17.8
# define QT_MAKE_CHECKED_ARRAY_ITERATOR(x, N) stdext::make_checked_array_iterator(x, size_t(N)) // Since _MSC_VER >= 1500
# endif
# define Q_COMPILER_COMPLAINS_ABOUT_RETURN_AFTER_UNREACHABLE
# ifdef Q_CC_MSVC_ONLY
# define Q_COMPILER_COMPLAINS_ABOUT_RETURN_AFTER_UNREACHABLE
# endif
#elif defined(__BORLANDC__) || defined(__TURBOC__)
# define Q_CC_BOR