diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-03-04 11:38:40 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-14 16:33:59 +0000 |
commit | eec64066073428e38d5b0b6947ff302943188f65 (patch) | |
tree | ec55d656734941dee8b2a599b588a12cc174337d /meta/recipes-core/glib-2.0/glib-2.0/0020-gobject-Drop-volatile-qualifier-from-GObject.ref_cou.patch | |
parent | 8a74a7deca45ceef351f47a9f160df9bafc0f546 (diff) | |
download | poky-eec64066073428e38d5b0b6947ff302943188f65.tar.gz |
glib-2.0: Drop volatile qualifier
Fixes
glib/gatomic.h:112:5: error: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Werror=incompatible-pointer-types]
(From OE-Core rev: 06ac55a06f2300fa5442ec73a28c3f52022cc640)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/0020-gobject-Drop-volatile-qualifier-from-GObject.ref_cou.patch')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/0020-gobject-Drop-volatile-qualifier-from-GObject.ref_cou.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/0020-gobject-Drop-volatile-qualifier-from-GObject.ref_cou.patch b/meta/recipes-core/glib-2.0/glib-2.0/0020-gobject-Drop-volatile-qualifier-from-GObject.ref_cou.patch new file mode 100644 index 0000000000..ae024a9af4 --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0/0020-gobject-Drop-volatile-qualifier-from-GObject.ref_cou.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 334f6953364680ddc6c0d3da13fda1d92bf5379d Mon Sep 17 00:00:00 2001 | ||
2 | From: Philip Withnall <pwithnall@endlessos.org> | ||
3 | Date: Wed, 11 Nov 2020 19:21:07 +0000 | ||
4 | Subject: [PATCH 20/29] gobject: Drop volatile qualifier from GObject.ref_count | ||
5 | |||
6 | This is an API break, but no third party code should be touching | ||
7 | `GObject.ref_count`, let alone in a way which would be changed by the | ||
8 | removal of the `volatile` qualifier. | ||
9 | |||
10 | Signed-off-by: Philip Withnall <pwithnall@endlessos.org> | ||
11 | |||
12 | Helps: #600 | ||
13 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719] | ||
14 | --- | ||
15 | gobject/gobject.h | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/gobject/gobject.h b/gobject/gobject.h | ||
19 | index 7f55e1976..a84c183f8 100644 | ||
20 | --- a/gobject/gobject.h | ||
21 | +++ b/gobject/gobject.h | ||
22 | @@ -247,7 +247,7 @@ struct _GObject | ||
23 | GTypeInstance g_type_instance; | ||
24 | |||
25 | /*< private >*/ | ||
26 | - volatile guint ref_count; | ||
27 | + guint ref_count; /* (atomic) */ | ||
28 | GData *qdata; | ||
29 | }; | ||
30 | /** | ||
31 | -- | ||
32 | 2.30.1 | ||
33 | |||