geany-plugins: Fix type error found with clang 15

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2022-08-30 22:40:15 -07:00
parent 0a84141417
commit c9e205eb6e
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,34 @@
From 9ee9388bc66e6cf68db96b2014dca2115f745dc9 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 30 Aug 2022 22:33:46 -0700
Subject: [PATCH] scope: Use 0 instead of NULL for gboolean
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.
Upstream-Status: Submitted [https://github.com/geany/geany-plugins/pull/1191]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
scope/src/stack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scope/src/stack.c b/scope/src/stack.c
index b03909fe..041dd415 100644
--- a/scope/src/stack.c
+++ b/scope/src/stack.c
@@ -165,7 +165,7 @@ void on_stack_follow(GArray *nodes)
gboolean stack_entry(void)
{
GtkTreeIter iter;
- gboolean entry = NULL;
+ gboolean entry = 0;
if (gtk_tree_selection_get_selected(selection, NULL, &iter))
{
--
2.37.3

View File

@ -33,6 +33,7 @@ SRC_URI = " \
file://0001-Use-pkg-config-to-find-gpgme.patch \
file://0001-git-changebar-Adjust-structs-for-libgit2-1.4.x.patch \
file://0001-geany.m4-Do-not-tinker-with-pkg-config-paths.patch \
file://0001-scope-Use-0-instead-of-NULL-for-gboolean.patch \
"
SRC_URI[sha256sum] = "1c578a7ebb390aa8882f195acd3d8da3ceb73925d291b28dec90cd3e5fd20586"