[gnome-software: 2/3] odrs: Avoid the need to declare the g_array_binary_search() fallback
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 2/3] odrs: Avoid the need to declare the g_array_binary_search() fallback
- Date: Wed, 10 Feb 2021 20:17:06 +0000 (UTC)
commit c315bf0e95c1d48172f198577c0e9fca86bafdc2
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Feb 10 19:39:46 2021 +0000
odrs: Avoid the need to declare the g_array_binary_search() fallback
`g_array_binary_search()` is defined locally if compiling against an
older version of GLib. However, it wasn’t declared as `static`, and no
function declaration existed (only the function definition), resulting a
compiler warning.
Fix that by making the function `static`. This introduces no functional
changes, but squashes the compiler warning.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
plugins/odrs/gs-plugin-odrs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/odrs/gs-plugin-odrs.c b/plugins/odrs/gs-plugin-odrs.c
index a04944dca..5920c4e40 100644
--- a/plugins/odrs/gs-plugin-odrs.c
+++ b/plugins/odrs/gs-plugin-odrs.c
@@ -47,7 +47,7 @@ typedef struct
GDestroyNotify clear_func;
} GRealArray;
-gboolean
+static gboolean
g_array_binary_search (GArray *array,
gconstpointer target,
GCompareFunc compare_func,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]