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]";
             ^
This commit is contained in:
Scott Kostyshak 2023-04-26 14:03:57 -04:00
parent 82e430dfd0
commit 1dc55bd88b

View File

@ -31,11 +31,12 @@ string const sec_lastfiles = "[recent files]";
string const sec_lastfilepos = "[cursor positions]"; string const sec_lastfilepos = "[cursor positions]";
string const sec_lastopened = "[last opened files]"; string const sec_lastopened = "[last opened files]";
string const sec_bookmarks = "[bookmarks]"; 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_lastcommands = "[last commands]";
string const sec_authfiles = "[auth files]"; string const sec_authfiles = "[auth files]";
string const sec_shellescape = "[shell escape files]"; string const sec_shellescape = "[shell escape files]";
// currently unused:
//string const sec_session = "[session info]";
//string const sec_toolbars = "[toolbars]";
} // namespace } // namespace