Remove some unused variables - leave the side effect

This commit is contained in:
Richard Cohen
2023-01-25 16:20:53 +00:00
parent ea2d3be217
commit c819b03a17
5 changed files with 11 additions and 11 deletions

View File

@@ -452,10 +452,10 @@ gnc_plugin_page_invoice_action_update (GncPluginPage *plugin_page,
for (gint i = 0; (action_list[i].action_name != NULL); i++)
{
gboolean found = gnc_main_window_update_menu_for_action (window,
action_list[i].action_name,
_(action_list[i].label),
_(action_list[i].tooltip));
gnc_main_window_update_menu_for_action (window,
action_list[i].action_name,
_(action_list[i].label),
_(action_list[i].tooltip));
tool_item = gnc_main_window_toolbar_find_tool_item (window,
action_list[i].action_name);

View File

@@ -1232,10 +1232,10 @@ gnc_plugin_page_report_menu_update (GncPluginPage *plugin_page,
for (gint i = 0; (tooltip_list[i].action_name != nullptr); i++)
{
gboolean found = gnc_main_window_update_menu_for_action (window,
tooltip_list[i].action_name,
_(tooltip_list[i].label),
_(tooltip_list[i].tooltip));
gnc_main_window_update_menu_for_action (window,
tooltip_list[i].action_name,
_(tooltip_list[i].label),
_(tooltip_list[i].tooltip));
tool_item = gnc_main_window_toolbar_find_tool_item (window,
tooltip_list[i].action_name);

View File

@@ -360,7 +360,7 @@ GUID::is_valid_guid (std::string const & str)
try
{
static boost::uuids::string_generator strgen;
auto a = strgen (str);
strgen (str);
return true;
}
catch (...)

View File

@@ -73,7 +73,7 @@ TEST (GncGUID, from_string)
bool fail = false;
try
{
auto guid = gnc::GUID::from_string (bogus);
gnc::GUID::from_string (bogus);
}
catch (gnc::guid_syntax_exception const &)
{

View File

@@ -63,7 +63,7 @@ void QofSessionMockBackend::load (QofBook *book, QofBackendLoadType)
if (load_error)
set_error(ERR_BACKEND_NO_BACKEND);
else
auto root = gnc_account_create_root (book);
gnc_account_create_root (book);
data_loaded = true;
}