git: 689f27cab443 - main - devel/geany-plugin-scope: Fix build with llvm 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Feb 2023 22:33:17 UTC
The branch main has been updated by madpilot: URL: https://cgit.FreeBSD.org/ports/commit/?id=689f27cab443606f042f2c3abcf5f5d89e53bd8a commit 689f27cab443606f042f2c3abcf5f5d89e53bd8a Author: Guido Falsi <madpilot@FreeBSD.org> AuthorDate: 2023-02-10 22:31:04 +0000 Commit: Guido Falsi <madpilot@FreeBSD.org> CommitDate: 2023-02-10 22:31:04 +0000 devel/geany-plugin-scope: Fix build with llvm 15 Obtained from: https://github.com/geany/geany-plugins/commit/0a4e3146cc97517ae09c1d854973ca26e46af33b --- .../files/patch-scope_src_stack.c | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/devel/geany-plugin-scope/files/patch-scope_src_stack.c b/devel/geany-plugin-scope/files/patch-scope_src_stack.c new file mode 100644 index 000000000000..9bf9045ab218 --- /dev/null +++ b/devel/geany-plugin-scope/files/patch-scope_src_stack.c @@ -0,0 +1,30 @@ +From 0a4e3146cc97517ae09c1d854973ca26e46af33b 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 FALSE 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. + +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 b03909feb..ce6e2a472 100644 +--- scope/src/stack.c ++++ 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 = FALSE; + + if (gtk_tree_selection_get_selected(selection, NULL, &iter)) + {