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) ...@@ -51,13 +51,15 @@ if (NOT WIN32)
-Wall \ -Wall \
-Wcast-align \ -Wcast-align \
-Wconversion \ -Wconversion \
-Werror=return-type \
-Werror=old-style-cast \ -Werror=old-style-cast \
-Werror=return-type \
-Wextra \ -Wextra \
-Wfloat-equal \ -Wfloat-equal \
-Winit-self \ -Winit-self \
-Wnon-virtual-dtor \
-Woverloaded-virtual \ -Woverloaded-virtual \
-Wpointer-arith \ -Wpointer-arith \
-Wsign-conversion \
-Wuninitialized \ -Wuninitialized \
-Wunused \ -Wunused \
") ")
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
void TestUtils::executeKeySequence (QQuickWindow *window, QKeySequence sequence) { void TestUtils::executeKeySequence (QQuickWindow *window, QKeySequence sequence) {
for (int i = 0; i < sequence.count(); ++i) { for (int i = 0; i < sequence.count(); ++i) {
int key = sequence[i]; uint key = static_cast<uint>(sequence[static_cast<uint>(i)]);
QTest::keyClick( QTest::keyClick(
window, window,
Qt::Key(key & ~Qt::KeyboardModifierMask), 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