nautilus: Drop use of volatile

volatile qualifier has been dropped in gcc11

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Khem Raj
2021-03-02 14:13:48 -08:00
parent 70cfed4768
commit 1498b3407f
2 changed files with 33 additions and 0 deletions
@@ -0,0 +1,32 @@
From 9ab5acb902a38b420592931ec9e46ccd0624035a Mon Sep 17 00:00:00 2001
From: Ondrej Holy <oholy@redhat.com>
Date: Wed, 13 Jan 2021 13:22:58 +0100
Subject: [PATCH] Drop use of volatile
The `fedora rawhide` CI job currently fails because of usage of the
`volatile` qualifier. Let's drop the `volatile` qualifier as it doesn't
help anyway. It was dropped in GLib as well, see:
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1741
---
Upstream-Status: Backport [https://github.com/GNOME/nautilus/commit/9b733dd9df9d6d9805c56749d05ada15a7560ef4]
src/nautilus-enum-types.c.template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nautilus-enum-types.c.template b/src/nautilus-enum-types.c.template
index 00155ca..9d8ac83 100644
--- a/src/nautilus-enum-types.c.template
+++ b/src/nautilus-enum-types.c.template
@@ -13,7 +13,7 @@
GType
@enum_name@_get_type (void)
{
- static volatile GType type_once = 0;
+ static GType type_once = 0;
if (g_once_init_enter (&type_once))
{
--
2.30.1
@@ -17,6 +17,7 @@ DEPENDS = " \
inherit gnomebase gsettings gobject-introspection gtk-doc gettext features_check upstream-version-is-even mime-xdg
SRC_URI += "file://0001-Drop-use-of-volatile.patch"
SRC_URI[archive.md5sum] = "c3c8dbb90d8eeed6c127aa568e131395"
SRC_URI[archive.sha256sum] = "b6cafc7ab1e70a64383de391b6097fcccbf36b208f8502d8c46423224fd30ef8"