# HG changeset patch # User Markus Mützel # Date 1638729296 -3600 # Node ID fffccc353ffc1dd618472a5b7dcf55b164422e42 # Parent ad705550616ca53a826c8038a8a03ab14dd6750e octave-qscintilla.cc: Silence compiler warning about unused parameter. * libgui/src/m-editor/octave-qscintilla.cc (octave_qscintilla::contextMenuEvent, octave_qscintilla::contextmenu_break_once): Silence compiler warning about unused parameter. diff -r ad705550616c -r fffccc353ffc libgui/src/m-editor/octave-qscintilla.cc --- a/libgui/src/m-editor/octave-qscintilla.cc Sun Dec 05 19:30:04 2021 +0100 +++ b/libgui/src/m-editor/octave-qscintilla.cc Sun Dec 05 19:34:56 2021 +0100 @@ -277,9 +277,9 @@ global_pos = editor_rect.topLeft (); // yes, take top left corner } -#if defined (HAVE_QSCI_VERSION_2_6_0) +# if defined (HAVE_QSCI_VERSION_2_6_0) if (! in_left_margin) -#endif +# endif { // fill context menu with editor's standard actions emit create_context_menu_signal (context_menu); @@ -305,7 +305,7 @@ } } } -#if defined (HAVE_QSCI_VERSION_2_6_0) +# if defined (HAVE_QSCI_VERSION_2_6_0) else { // remove all standard actions from scintilla @@ -319,10 +319,15 @@ &octave_qscintilla::contextmenu_break_condition); act->setData (local_pos); } -#endif +# endif // finally show the menu context_menu->exec (global_pos); + +#else + + octave_unused_parameter (e); + #endif } @@ -1061,6 +1066,8 @@ { #if defined (HAVE_QSCI_VERSION_2_6_0) emit context_menu_break_once (lineAt (local_pos)); +#else + octave_unused_parameter (local_pos); #endif }