From 0aa9f7de646a0546d114b60457bac55ee87f1d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 17 May 2020 09:48:07 +0200 Subject: trigger: add (void) before calls to trigger_callback_execute when the returned value is ignored --- src/plugins/trigger/trigger-callback.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/plugins/trigger/trigger-callback.c b/src/plugins/trigger/trigger-callback.c index 8c12e828c..995daa6c1 100644 --- a/src/plugins/trigger/trigger-callback.c +++ b/src/plugins/trigger/trigger-callback.c @@ -771,7 +771,8 @@ trigger_callback_modifier_cb (const void *pointer, void *data, } /* execute the trigger (conditions, regex, command) */ - trigger_callback_execute (trigger, buffer, pointers, extra_vars, NULL); + (void) trigger_callback_execute (trigger, buffer, pointers, extra_vars, + NULL); end: ptr_string = weechat_hashtable_get (extra_vars, "tg_string"); @@ -868,8 +869,8 @@ trigger_callback_line_cb (const void *pointer, void *data, } /* execute the trigger (conditions, regex, command) */ - trigger_callback_execute (trigger, buffer, pointers, extra_vars, - vars_updated); + (void) trigger_callback_execute (trigger, buffer, pointers, extra_vars, + vars_updated); hashtable = weechat_hashtable_new (32, WEECHAT_HASHTABLE_STRING, @@ -1175,7 +1176,7 @@ trigger_callback_focus_cb (const void *pointer, void *data, } /* execute the trigger (conditions, regex, command) */ - trigger_callback_execute (trigger, NULL, pointers, info, NULL); + (void) trigger_callback_execute (trigger, NULL, pointers, info, NULL); end: TRIGGER_CALLBACK_CB_END(info); @@ -1202,7 +1203,8 @@ trigger_callback_info_cb (const void *pointer, void *data, weechat_hashtable_set (extra_vars, "tg_info", ""); /* execute the trigger (conditions, regex, command) */ - trigger_callback_execute (trigger, NULL, pointers, extra_vars, NULL); + (void) trigger_callback_execute (trigger, NULL, pointers, extra_vars, + NULL); end: ptr_info = weechat_hashtable_get (extra_vars, "tg_info"); @@ -1237,8 +1239,8 @@ trigger_callback_info_hashtable_cb (const void *pointer, void *data, weechat_hashtable_set (extra_vars, "tg_info_name", info_name); /* execute the trigger (conditions, regex, command) */ - trigger_callback_execute (trigger, NULL, pointers, extra_vars, - vars_updated); + (void) trigger_callback_execute (trigger, NULL, pointers, extra_vars, + vars_updated); ret_hashtable = weechat_hashtable_new (32, WEECHAT_HASHTABLE_STRING, -- cgit v1.2.3