Commit 90d505cd authored by Ronan Abhamon's avatar Ronan Abhamon

feat(CMakeLists.txt): add -Wnon-virtual-dtor and -Wsign-conversion warnings

parent cc773fb5
......@@ -51,13 +51,15 @@ if (NOT WIN32)
-Wall \
-Wcast-align \
-Wconversion \
-Werror=return-type \
-Werror=old-style-cast \
-Werror=return-type \
-Wextra \
-Wfloat-equal \
-Winit-self \
-Wnon-virtual-dtor \
-Woverloaded-virtual \
-Wpointer-arith \
-Wsign-conversion \
-Wuninitialized \
-Wunused \
")
......
......@@ -35,7 +35,7 @@
void TestUtils::executeKeySequence (QQuickWindow *window, QKeySequence sequence) {
for (int i = 0; i < sequence.count(); ++i) {
int key = sequence[i];
uint key = static_cast<uint>(sequence[static_cast<uint>(i)]);
QTest::keyClick(
window,
Qt::Key(key & ~Qt::KeyboardModifierMask),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment