From ee1f2956aa6633950c21dcaef4b05404fc53db5a Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Oct 29 2020 14:42:30 +0000 Subject: Fix volatile issue exposed by gcc-11 --- diff --git a/gnucash-gcc11.patch b/gnucash-gcc11.patch index d48eb79..f862383 100644 --- a/gnucash-gcc11.patch +++ b/gnucash-gcc11.patch @@ -13,3 +13,16 @@ index b0369bc..dec3b23 100644 } +diff --git a/gnucash/gnome-utils/gnc-gobject-utils.h b/gnucash/gnome-utils/gnc-gobject-utils.h +index 11485de..4b6ce82 100644 +--- a/gnucash/gnome-utils/gnc-gobject-utils.h ++++ b/gnucash/gnome-utils/gnc-gobject-utils.h +@@ -145,7 +145,7 @@ type_name##_get_instance_private (TypeName *self) \ + GType \ + type_name##_get_type (void) \ + { \ +- static volatile gsize g_define_type_id__volatile = 0; \ ++ static gsize g_define_type_id__volatile = 0; \ + if (g_once_init_enter (&g_define_type_id__volatile)) \ + { \ + GType g_define_type_id = \ diff --git a/gnucash.spec b/gnucash.spec index 1ba26fc..f697911 100644 --- a/gnucash.spec +++ b/gnucash.spec @@ -2,7 +2,7 @@ Name: gnucash Summary: Finance management application Version: 4.2 URL: http://gnucash.org/ -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ Source: https://downloads.sourceforge.net/sourceforge/gnucash/gnucash-%{version}.tar.bz2 Patch0: gnucash-gcc11.patch @@ -100,6 +100,9 @@ appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/gnucas %config(noreplace) %{_sysconfdir}/gnucash/* %changelog +* Wed Oct 28 2020 Jeff Law - 4.2-3 +- Fix volatile issue exposed by gcc-11 + * Wed Oct 14 2020 Jeff Law - 4.2-2 - Fix misleading indentation warning from gcc-11