Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 1 | From 9ee9388bc66e6cf68db96b2014dca2115f745dc9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 30 Aug 2022 22:33:46 -0700 |
| 4 | Subject: [PATCH] scope: Use 0 instead of NULL for gboolean |
| 5 | |
| 6 | Fixes warnings with clang 15+ |
| 7 | |
| 8 | scope/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 | ^ ~~~~ |
| 11 | 1 error generated. |
| 12 | |
| 13 | Upstream-Status: Submitted [https://github.com/geany/geany-plugins/pull/1191] |
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 15 | --- |
| 16 | scope/src/stack.c | 2 +- |
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/scope/src/stack.c b/scope/src/stack.c |
| 20 | index 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 | -- |
| 33 | 2.37.3 |
| 34 | |