Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 07 Oct 2023 19:54:04 UTC Commit: e9127911bc89c8cba0a4ecbd5c450efcc4b08a52 https://github.com/geany/geany/commit/e9127911bc89c8cba0a4ecbd5c450efcc4b08a...
Log Message: ----------- Fix missing return value in copy_tags()
Actually make this function not return anything as no caller seem to need it, and it's not entirely trivial to return a useful value (it could return the number of copied tags, but it'd have to be computed, which is not useful if not used).
Modified Paths: -------------- src/tagmanager/tm_workspace.c
Modified: src/tagmanager/tm_workspace.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -740,12 +740,12 @@ static gboolean is_workspace_tag(TMTag *tag, CopyInfo *info) }
-static guint copy_tags(GPtrArray *dst, TMTag **src, guint src_len, GHashTable *name_table, +static void copy_tags(GPtrArray *dst, TMTag **src, guint src_len, GHashTable *name_table, gint num, gboolean (*predicate) (TMTag *, CopyInfo *), CopyInfo *info) { guint i;
- g_return_val_if_fail(src && dst, 0); + g_return_if_fail(src && dst);
for (i = 0; i < src_len && num > 0; i++) {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).