# HG changeset patch # User Rik # Date 1714677158 25200 # Node ID d3effbb99fa30e7b45b89e287d2543cd9aed246e # Parent 1d0365c531a18b9b00112930ebea3e24ea643fc7 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)". diff -r 1d0365c531a1 -r d3effbb99fa3 libgui/src/gui-settings.cc --- 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) {