1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Add comment about dead assignment in callback_add_timed

This commit is contained in:
Michael Vetter 2019-08-23 10:09:32 +02:00
parent 62103665e2
commit d43bd8f253

View File

@ -199,6 +199,7 @@ callbacks_add_timed(const char *const plugin_name, PluginTimedFunction *timed_fu
{
GList *timed_function_list = g_hash_table_lookup(p_timed_functions, plugin_name);
if (timed_function_list) {
// we assign this so we dont get: -Werror=unused-result
timed_function_list = g_list_append(timed_function_list, timed_function);
} else {
timed_function_list = g_list_append(timed_function_list, timed_function);