changeset 30444:fffccc353ffc stable

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.
author Markus Mützel <markus.muetzel@gmx.de>
date Sun, 05 Dec 2021 19:34:56 +0100
parents ad705550616c
children a9368ec5ac7c e9b5838722fc
files libgui/src/m-editor/octave-qscintilla.cc
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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
   }