From 979d367ef797ca02030f202999a0bea80a5a1415 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 13 Jul 2023 11:38:03 +0200 Subject: [PATCH] tst_QThread: Unbreak UBSan build tst_QThread peeks into QThreadPrivate, which means that a UBSan build needs access to QThreadPrivate's type_info, for which we need to export the class. Amends 268ff00ef50a74ffa58e53c2c8897b7a7319be41. Change-Id: Ic26df3d323d50b51d369d5f2bd78db7e047b5341 Reviewed-by: Thiago Macieira (cherry picked from commit 22b3eca55dfa409fd5184b033be84f5a600fe283) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/thread/qthread_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/thread/qthread_p.h b/src/corelib/thread/qthread_p.h index 9aa0b3ea22a..7e32bcf7cd7 100644 --- a/src/corelib/thread/qthread_p.h +++ b/src/corelib/thread/qthread_p.h @@ -170,7 +170,7 @@ public: ~QDaemonThread(); }; -class QThreadPrivate : public QObjectPrivate +class Q_AUTOTEST_EXPORT QThreadPrivate : public QObjectPrivate { Q_DECLARE_PUBLIC(QThread)