Skip to content

Commit

Permalink
Merge pull request #299 from mwleeds/dont-use-quark-volatile
Browse files Browse the repository at this point in the history
Don't use volatile qualifier for quark
  • Loading branch information
pwithnall authored Feb 8, 2022
2 parents 5c7e97e + 6511536 commit 4aac33c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libeos-updater-util/types.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ G_STATIC_ASSERT (G_N_ELEMENTS (eos_updater_error_entries) == EOS_UPDATER_ERROR_L
GQuark
eos_updater_error_quark (void)
{
static volatile gsize quark_volatile = 0;
static gsize quark = 0;
g_dbus_error_register_error_domain ("eos-updater-error-quark",
&quark_volatile,
&quark,
eos_updater_error_entries,
G_N_ELEMENTS (eos_updater_error_entries));
return (GQuark) quark_volatile;
return (GQuark) quark;
}

static const gchar * state_str[] = {
Expand Down

0 comments on commit 4aac33c

Please sign in to comment.