summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qresource.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2020-08-26 19:34:25 +0200
committerLars Knoll <lars.knoll@qt.io>2020-10-09 12:52:14 +0200
commit23189a906882c79880cab5359b1ab74ba916223f (patch)
tree5e81d5b1287de66f6ce381526fc770efd7cb15cc /src/corelib/io/qresource.cpp
parentcb1004f94a175b3ffc93ca9627074e2aaff31f1a (diff)
Fix warning: 'open' has superfluous mode bits; missing O_CREAT?
Adding mode flags doesn't make sense if you don't create a file but only open if for reading. Change-Id: I9307b07cbbcddea565fff9258de7f7beb373a8ad Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/io/qresource.cpp')
-rw-r--r--src/corelib/io/qresource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp
index 3aeaa1427b..80247de9a0 100644
--- a/src/corelib/io/qresource.cpp
+++ b/src/corelib/io/qresource.cpp
@@ -1173,7 +1173,7 @@ bool QDynamicFileResourceRoot::registerSelf(const QString &f)
qsizetype data_len = 0;
#if defined(QT_USE_MMAP)
- int fd = QT_OPEN(QFile::encodeName(f), O_RDONLY, 0666);
+ int fd = QT_OPEN(QFile::encodeName(f), O_RDONLY);
if (fd >= 0) {
QT_STATBUF st;
if (!QT_FSTAT(fd, &st) && st.st_size <= std::numeric_limits<qsizetype>::max()) {