Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Tue, 29 Mar 2016 13:03:55 UTC Commit: c30d34cf54b5eada62c53e9be43fb181e023c8a3 https://github.com/geany/geany-plugins/commit/c30d34cf54b5eada62c53e9be43fb1...
Log Message: ----------- debugger: eliminate llvm warning
on_key_pressed() is an existing callback function so the pointer is always non-NULL:
vtree.c:164:14: warning: comparison of function 'on_key_pressed' not equal to a null pointer is always true [-Wtautological-pointer-compare] if (NULL != on_key_pressed) ~~~~ ^~~~~~~~~~~~~~
Remove the unnecessary check.
Modified Paths: -------------- debugger/src/vtree.c
Modified: debugger/src/vtree.c 5 lines changed, 1 insertions(+), 4 deletions(-) =================================================================== @@ -161,10 +161,7 @@ GtkWidget* vtree_create(watch_render_name on_render_name, watch_expression_chang gtk_tree_view_set_level_indentation(GTK_TREE_VIEW(tree), 10);
/* connect signals */ - if (NULL != on_key_pressed) - { - g_signal_connect(G_OBJECT(tree), "key-press-event", G_CALLBACK (on_key_pressed), NULL); - } + g_signal_connect(G_OBJECT(tree), "key-press-event", G_CALLBACK (on_key_pressed), NULL);
/* create columns */
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org