changeset 33509:d3effbb99fa3

build: Silence compiler warning about unused function when compiling with --without-qscintilla. * gui-settings.cc (copy_font_attributes): place function inside block protected by "#if defined (HAVE_QSCINTILLA)".
author Rik <rik@octave.org>
date Thu, 02 May 2024 12:12:38 -0700
parents 1d0365c531a1
children 35f78d896613
files libgui/src/gui-settings.cc
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/gui-settings.cc	Thu May 02 06:44:38 2024 +0200
+++ b/libgui/src/gui-settings.cc	Thu May 02 12:12:38 2024 -0700
@@ -473,7 +473,6 @@
     }
   return max_style;
 }
-#endif
 
 /*!
  * Copys the attributes bold, italic and underline from QFont
@@ -494,7 +493,6 @@
   return dest;
 }
 
-#if defined (HAVE_QSCINTILLA)
 void
 gui_settings::read_lexer_settings (QsciLexer *lexer, int mode, int def)
 {