blob: bb03fa63def7e2ee3a3c7a51632848f01d45e004 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 9ee9388bc66e6cf68db96b2014dca2115f745dc9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 30 Aug 2022 22:33:46 -0700
4Subject: [PATCH] scope: Use 0 instead of NULL for gboolean
5
6Fixes warnings with clang 15+
7
8scope/src/stack.c:168:11: error: incompatible pointer to integer conversion initializing 'gboolean' (aka 'int') with an expression of type 'void *' [-Wint-conversion]
9 gboolean entry = NULL;
10 ^ ~~~~
111 error generated.
12
13Upstream-Status: Submitted [https://github.com/geany/geany-plugins/pull/1191]
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 scope/src/stack.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/scope/src/stack.c b/scope/src/stack.c
20index b03909fe..041dd415 100644
21--- a/scope/src/stack.c
22+++ b/scope/src/stack.c
23@@ -165,7 +165,7 @@ void on_stack_follow(GArray *nodes)
24 gboolean stack_entry(void)
25 {
26 GtkTreeIter iter;
27- gboolean entry = NULL;
28+ gboolean entry = 0;
29
30 if (gtk_tree_selection_get_selected(selection, NULL, &iter))
31 {
32--
332.37.3
34