fix warnings

master
bqv 2 years ago
parent 209be85822
commit 44f17b80da
No known key found for this signature in database
GPG Key ID: 9E2FF3BDEBDFC910

@ -562,7 +562,7 @@ int connection__message_handler(xmpp_conn_t *conn, xmpp_stanza_t *stanza, void *
{
int tags_count = weechat_hdata_integer(weechat_hdata_get("line_data"),
line_data, "tags_count");
char str_tag[20] = {0};
char str_tag[24] = {0};
for (int n_tag = 0; n_tag < tags_count; n_tag++)
{
snprintf(str_tag, sizeof(str_tag), "%d|tags_array", n_tag);

@ -279,21 +279,21 @@ namespace xml {
using xmpp_stanzas = urn::ietf::params::xml::ns::xmpp_stanzas;
for (auto& child : node.get_children<xmpp_stanzas>("not-authorized"))
if (node.get_children<xmpp_stanzas>("not-authorized").size() > 0)
condition = not_authorized;
for (auto& child : node.get_children<xmpp_stanzas>("forbidden"))
if (node.get_children<xmpp_stanzas>("forbidden").size() > 0)
condition = forbidden;
for (auto& child : node.get_children<xmpp_stanzas>("item-not-found"))
if (node.get_children<xmpp_stanzas>("item-not-found").size() > 0)
condition = item_not_found;
for (auto& child : node.get_children<xmpp_stanzas>("not-allowed"))
if (node.get_children<xmpp_stanzas>("not-allowed").size() > 0)
condition = not_allowed;
for (auto& child : node.get_children<xmpp_stanzas>("not-acceptable"))
if (node.get_children<xmpp_stanzas>("not-acceptable").size() > 0)
condition = not_acceptable;
for (auto& child : node.get_children<xmpp_stanzas>("registration-required"))
if (node.get_children<xmpp_stanzas>("registration-required").size() > 0)
condition = registration_required;
for (auto& child : node.get_children<xmpp_stanzas>("conflict"))
if (node.get_children<xmpp_stanzas>("conflict").size() > 0)
condition = conflict;
for (auto& child : node.get_children<xmpp_stanzas>("service-unavailable"))
if (node.get_children<xmpp_stanzas>("service-unavailable").size() > 0)
condition = service_unavailable;
for (auto& child : node.get_children("text"))

Loading…
Cancel
Save