MinGW compile fix: Add missing inline keyword
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>
This commit is contained in:
parent
954e7b623b
commit
cfc50c7026
@ -179,7 +179,7 @@ public:
|
||||
|
||||
qint64 size() const { return size_; }
|
||||
|
||||
QFile::Permissions permissions() const;
|
||||
inline QFile::Permissions permissions() const;
|
||||
|
||||
QDateTime accessTime() const;
|
||||
QDateTime birthTime() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user