Some compilers are picky about that the declaration needs to match the definition also for the inline keyword: qt5/qtbase/src/corelib/io/qfilesystemmetadata_p.h:239:27: error: 'QFileDevice::Permissions QFileSystemMetaData::permissions() const' redeclared without dllimport attribute after being referenced with dll linkage [-Werror] 239 | inline QFile::Permissions QFileSystemMetaData::permissions()... | ^~~~~~~~~~~~~~~~~~~ cc1plus.exe: all warnings being treated as errors Fix by declaring the function inline, not only at the definition. Change-Id: I68d1fd2f9952ec3bf54b1ba27461bf1751c9d301 Reviewed-by: Matthias Rauter <matthias.rauter@qt.io> (cherry picked from commit b950ec2525af789b3d447218ae62906c2f78f5a5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%