summaryrefslogtreecommitdiffstats
path: root/src/corelib/Qt6CoreResourceInit.in.cpp
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2024-03-21 16:38:28 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2024-03-22 18:50:36 +0100
commit51aa9c6163c90fecdf54012819750d14c36da5d4 (patch)
tree298070da7de6b41f3783e75ba3301b95026916c9 /src/corelib/Qt6CoreResourceInit.in.cpp
parent619570f23d488adb08a53894dc1bdc153880cc61 (diff)
CMake: Fix semicolon warnings for generated resource init code
Fixes clang warnings when -Wextra-semi-stmt is enabled. Sample warning: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] resourceReferenceKeeper() { QT_KEEP_RESOURCE(qmake_foo); } Amends 11259972a3c5d1918f889f145a1f223bf7d876a8 Pick-to: 6.7 Fixes: QTBUG-123588 Change-Id: I7ffc23cf00d8e2741e91c4d0b4056b0c89057dc2 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/corelib/Qt6CoreResourceInit.in.cpp')
-rw-r--r--src/corelib/Qt6CoreResourceInit.in.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/Qt6CoreResourceInit.in.cpp b/src/corelib/Qt6CoreResourceInit.in.cpp
index 375732fcc9b..3f1757362d0 100644
--- a/src/corelib/Qt6CoreResourceInit.in.cpp
+++ b/src/corelib/Qt6CoreResourceInit.in.cpp
@@ -9,6 +9,6 @@ QT_DECLARE_EXTERN_RESOURCE(@RESOURCE_NAME@)
namespace {
struct resourceReferenceKeeper {
- resourceReferenceKeeper() { QT_KEEP_RESOURCE(@RESOURCE_NAME@); }
+ resourceReferenceKeeper() { QT_KEEP_RESOURCE(@RESOURCE_NAME@) }
} resourceReferenceKeeperInstance;
}