From 1dc55bd88b9671ade0b3ad84fcbd992db1c66ca3 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 26 Apr 2023 14:03:57 -0400 Subject: [PATCH] Fix compiler warning about unused string consts These trigger a warning with Clang: src/Session.cpp:34:14: error: unused variable 'sec_session' [-Werror,-Wunused-const-variable] string const sec_session = "[session info]"; ^ src/Session.cpp:35:14: error: unused variable 'sec_toolbars' [-Werror,-Wunused-const-variable] string const sec_toolbars = "[toolbars]"; ^ --- src/Session.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Session.cpp b/src/Session.cpp index d79a5a09a9..9ec18f1d01 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -31,11 +31,12 @@ string const sec_lastfiles = "[recent files]"; string const sec_lastfilepos = "[cursor positions]"; string const sec_lastopened = "[last opened files]"; string const sec_bookmarks = "[bookmarks]"; -string const sec_session = "[session info]"; -string const sec_toolbars = "[toolbars]"; string const sec_lastcommands = "[last commands]"; string const sec_authfiles = "[auth files]"; string const sec_shellescape = "[shell escape files]"; +// currently unused: +//string const sec_session = "[session info]"; +//string const sec_toolbars = "[toolbars]"; } // namespace