diff --git a/src/plugins/terminal/shortcutmap.cpp b/src/plugins/terminal/shortcutmap.cpp index 220f997be9a..7a63a087f69 100644 --- a/src/plugins/terminal/shortcutmap.cpp +++ b/src/plugins/terminal/shortcutmap.cpp @@ -241,7 +241,11 @@ bool ShortcutMap::tryShortcut(QKeyEvent *e) return identicalMatches > 0; } } +#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) Q_UNREACHABLE_RETURN(false); +#else + return false; +#endif } /*! \internal