qwaitcondition_p.h: fix -Wunused-const-variable

Make the constexpr variable inline instead of static to shut up the
warning.

Amends fbc491230fe62f739925e8113d05f4108e2738ef.

Pick-to: 6.8 6.7
Task-number: QTBUG-126219
Change-Id: Ifa8db14dc28f039d0dc65eb779d715cd4a2c7240
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2024-09-17 12:17:20 +02:00
parent 7118dfad39
commit 743403cb6d

View File

@ -28,7 +28,7 @@ namespace QtPrivate {
// Ideal alignment for mutex and condition_variable: it's the hardware
// interference size (size of a cache line) if the types are likely to contain
// the actual data structures, otherwise just that of a pointer.
static constexpr quintptr IdealMutexAlignment =
inline constexpr quintptr IdealMutexAlignment =
sizeof(std::mutex) > sizeof(void *) &&
sizeof(std::condition_variable) > sizeof(void *) ?
64 : alignof(void*);