summaryrefslogtreecommitdiff
path: root/sql/wsrep_notify.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-04-03 09:19:12 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-04-03 09:20:21 +0300
commitb896f60a73aea32843a0a86a35def669d82503af (patch)
tree611533b47b06d3714ec5905323f0105efa20ce44 /sql/wsrep_notify.cc
parent0dc442ac61ac7ff1a1d6bd7d6090c0f2251fb558 (diff)
downloadmariadb-git-b896f60a73aea32843a0a86a35def669d82503af.tar.gz
Fix -Wformat and -Wnonnull-compare for WSREP
Diffstat (limited to 'sql/wsrep_notify.cc')
-rw-r--r--sql/wsrep_notify.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/wsrep_notify.cc b/sql/wsrep_notify.cc
index ad94aecb6b4..ef9dd872075 100644
--- a/sql/wsrep_notify.cc
+++ b/sql/wsrep_notify.cc
@@ -49,7 +49,7 @@ void wsrep_notify_status(enum wsrep::server_state::state status,
" --primary %s", view->view_seqno().get() >= 0 ? "yes" : "no");
cmd_off += snprintf (cmd_ptr + cmd_off, cmd_len - cmd_off,
- " --index %ld", view->own_index());
+ " --index %zd", view->own_index());
const std::vector<wsrep::view::member>& members(view->members());
if (members.size())