Skip to content

Commit

Permalink
Remove warnings by using size type modifer when logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lchsk committed Dec 28, 2018
1 parent 6c82eb5 commit 9d6cb20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db/model/list_tab_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ std::shared_ptr<sancho::QueryResult> SimpleTabModel::delete_rows(
return sancho::QueryResult::get(true);
}

g_debug("Removing %d rows", rows_to_delete.size());
g_debug("Removing %zd rows", rows_to_delete.size());

std::stringstream query;

Expand Down Expand Up @@ -308,7 +308,7 @@ SimpleTabModel::insert_row(const Gtk::TreeModel::Row& row) {
// We're executing INSERT queries one by one so we can check if there's
// exactly one affected row.
if (result->affected_rows != 1) {
g_warning("There should be exactly 1 affected row, instead: %d",
g_warning("There should be exactly 1 affected row, instead: %zd",
result->affected_rows);
result->set_status(false,
"There should be exactly 1 affected row, instead: " +
Expand Down

0 comments on commit 9d6cb20

Please sign in to comment.