commit 2a66f40f146f4bc32592a4b1e074de2c6307c846 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Jul 13 17:00:40 2025 +0200
Avoid unused-parameter warning with Qt5 --- src/frontends/qt/GuiInputMethod.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt/GuiInputMethod.cpp b/src/frontends/qt/GuiInputMethod.cpp index b1652a7949..cec2b6f716 100644 --- a/src/frontends/qt/GuiInputMethod.cpp +++ b/src/frontends/qt/GuiInputMethod.cpp @@ -486,7 +486,9 @@ pos_type GuiInputMethod::setTextFormat(const QInputMethodEvent::Attribute & it, char_format.setForeground(brush[2]); char_format.setBackground(brush[3]); } - +#else + // avoid unused-parameter warning. + (void) brush; #endif // QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) // The void "cursor segment" in the composing mode comes with it.start > 0 and -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs