1 This patch fixes ON builds where linter is not happy with unused variables.
2 https://bug.oraclecorp.com/pls/bug/webbug_print.show?c_rptno=28964691
4 Even though it fixes specific behavior of our build environment,
5 it can be suitable for upstream.
7 --- glib-2.82.0/glib/gstring.h.orig
8 +++ glib-2.82.0/glib/gstring.h
10 gstring->str[gstring->len] = 0;
13 - g_string_insert_c (gstring, -1, c);
14 + (void) g_string_insert_c (gstring, -1, c);
18 --- glib-2.82.0/glib/glib-autocleanups.h.orig
19 +++ glib-2.82.0/glib/glib-autocleanups.h
21 g_autoptr_cleanup_gstring_free (GString *string)
24 - g_string_free (string, TRUE);
25 + (void) g_string_free (string, TRUE);
28 /* Ignore deprecations in case we refer to a type which was added in a more
29 --- glib-2.82.0/gobject/gobject.h.orig
30 +++ glib-2.82.0/gobject/gobject.h
34 if (new_object != NULL)
35 - g_object_ref (new_object);
36 + (void) g_object_ref (new_object);
38 *object_ptr = new_object;