p7zip: update to 17.06
[oi-userland.git] / components / library / glib / patches / 14-ignored-return-values.patch
blob34a00dda38e2e33ae88923bb4a0c12a691850506
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
9 @@ -206,7 +206,7 @@
10 gstring->str[gstring->len] = 0;
12 else
13 - g_string_insert_c (gstring, -1, c);
14 + (void) g_string_insert_c (gstring, -1, c);
15 return gstring;
18 --- glib-2.82.0/glib/glib-autocleanups.h.orig
19 +++ glib-2.82.0/glib/glib-autocleanups.h
20 @@ -36,7 +36,7 @@
21 g_autoptr_cleanup_gstring_free (GString *string)
23 if (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
31 @@ -746,7 +746,7 @@
32 return FALSE;
34 if (new_object != NULL)
35 - g_object_ref (new_object);
36 + (void) g_object_ref (new_object);
38 *object_ptr = new_object;