mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
feat(CMakeLists.txt): add -Wnon-virtual-dtor and -Wsign-conversion warnings
This commit is contained in:
parent
cc773fb5dd
commit
90d505cd62
2 changed files with 4 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue