Actions
Bug #2073
openQt: Bitwise operation between enum types deprecated in g++-16
Start date:
07/04/2026
Due date:
% Done:
0%
Estimated time:
Description
S3_3 compilation with g++-16:
../../../../src/client/gui-qt/fc_client.cpp: In member function 'void fc_client::fc_main(QApplication*)':
../../../../src/client/gui-qt/fc_client.cpp:265:66: warning: bitwise operation between different enumeration types 'Qt::Modifier' and 'Qt::Key' is deprecated [-Wdeprecated-enum-enum-conversion]
265 | QShortcut *quit_shortcut = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q), this);
| ~~~~~~~^~~~~~~~~~~
Files
Updated by Marko Lindqvist 12 days ago
Seen with Qt5-mode build, but not with Qt6-mode.
Updated by Marko Lindqvist 12 days ago
- File 0016-Qt5-Fix-bitwise-operation-between-enum-types-warning.patch 0016-Qt5-Fix-bitwise-operation-between-enum-types-warning.patch added
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
S3_3 only. Main does not support Qt5-mode, and I rather keep the existing way to express the shortcut there.
Actions