From a14dcc7ad12cd5d0bfdca2b9134cf6a5642799ab Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 27 Jan 2023 09:38:39 +0100 Subject: [PATCH] QtCore/Windows: Fix inconsistent linkage of helper qAppFileName() MSVC is complaining about inconsistent linkage in CMake Unity (Jumbo) builds since the export is not declared. Since it is neither used nor declared in any header, remove the export. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: Ie6dbad0188b7fa42c0abd40c48cb50129badb38e Reviewed-by: Thiago Macieira --- src/corelib/kernel/qcoreapplication_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qcoreapplication_win.cpp b/src/corelib/kernel/qcoreapplication_win.cpp index 0fe14af798a..3a69bec25be 100644 --- a/src/corelib/kernel/qcoreapplication_win.cpp +++ b/src/corelib/kernel/qcoreapplication_win.cpp @@ -21,7 +21,7 @@ QT_BEGIN_NAMESPACE using namespace Qt::StringLiterals; -Q_CORE_EXPORT QString qAppFileName() // get application file name +QString qAppFileName() // get application file name { /* GetModuleFileName() returns the length of the module name, when it has