Skip to content

Commit 052ffe4

Browse files
committed
Fix compilation with clang-21
1 parent e29599f commit 052ffe4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/tools/iconset/iconset.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,10 @@ class Iconset::Private : public QSharedData {
13531353
+ '.' + ext.suffix();
13541354

13551355
QFile file(path);
1356-
file.open(QIODevice::WriteOnly);
1356+
if (!file.open(QIODevice::WriteOnly)) {
1357+
qWarning("failed to open %s: %s", qPrintable(path), qPrintable(file.errorString()));
1358+
return false;
1359+
}
13571360
QDataStream out(&file);
13581361

13591362
QByteArray data = this->loadData(fileName, dir); // "this" for compatibility with old gcc

0 commit comments

Comments
 (0)