Skip to content

Commit

Permalink
scope: Use FALSE instead of NULL for gboolean
Browse files Browse the repository at this point in the history
Fixes warnings with clang 15+

scope/src/stack.c:168:11: error: incompatible pointer to integer conversion initializing 'gboolean' (aka 'int') with an expression of type 'void *' [-Wint-conversion]
        gboolean entry = NULL;
                 ^       ~~~~
1 error generated.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
kraj committed Sep 4, 2022
1 parent 7900eb3 commit 0a4e314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scope/src/stack.c
Expand Up @@ -165,7 +165,7 @@ void on_stack_follow(GArray *nodes)
gboolean stack_entry(void)
{
GtkTreeIter iter;
gboolean entry = NULL;
gboolean entry = FALSE;

if (gtk_tree_selection_get_selected(selection, NULL, &iter))
{
Expand Down

0 comments on commit 0a4e314

Please sign in to comment.