From b8bbab93b6a6e9028bb6ce008d0e9a0742d51d9d Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 7 Dec 2020 13:19:51 +0000 Subject: [PATCH] define QT_FASTCALL to hot attribute for architectures other than i386 this will trigger compiler warning when used in function prototype declarations but should be worth it Signed-off-by: Ivailo Monev --- src/core/global/qglobal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/global/qglobal.h b/src/core/global/qglobal.h index 8eab812fc..bd1548273 100644 --- a/src/core/global/qglobal.h +++ b/src/core/global/qglobal.h @@ -363,7 +363,7 @@ QT_END_INCLUDE_NAMESPACE #if defined(QT_ARCH_I386) # define QT_FASTCALL __attribute__((regparm(3))) #else -# define QT_FASTCALL +# define QT_FASTCALL __attribute__((hot)) #endif // This logic must match the one in qmetatype.h -- 2.11.0