From 15e8ac168c95c1bafcf57178230c376a2e23979b Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 6 Nov 2024 14:58:42 -0800 Subject: [PATCH] QMetaType: suppress most errors for metatype for references We already print a static_assertion failure, but the compiler continues expanding the code and produces a lot of "error: forming pointer to reference type" messages after it. Change-Id: I5fe61a5240ffac45b727fffd29bc5c1215619540 Reviewed-by: Ivan Solovev --- src/corelib/kernel/qmetatype.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h index b245fbb541b..3ea98353d29 100644 --- a/src/corelib/kernel/qmetatype.h +++ b/src/corelib/kernel/qmetatype.h @@ -2539,6 +2539,8 @@ struct QMetaTypeInterfaceWrapper /*.legacyRegisterOp=*/ QMetaTypeForType::getLegacyRegister() }; }; +template struct QMetaTypeInterfaceWrapper {}; + #if !defined(Q_OS_WIN) && defined(Q_CC_CLANG) # pragma GCC visibility pop