[geany/geany] 951bba: Don't use volatile (#2907)
Avinash Sonawane
git-noreply at xxxxx
Mon Oct 18 21:56:24 UTC 2021
Branch: refs/heads/master
Author: Avinash Sonawane <rootkea at gmail.com>
Committer: GitHub <noreply at github.com>
Date: Mon, 18 Oct 2021 21:56:24 UTC
Commit: 951bbaa518cf033b73382e9f8f61407583c9df75
https://github.com/geany/geany/commit/951bbaa518cf033b73382e9f8f61407583c9df75
Log Message:
-----------
Don't use volatile (#2907)
`g_once_init_enter()` parameter shouldn't be volatile anymore. The low-level atomic access API don't use volatile such that a warning is shown on clang.
Modified Paths:
--------------
src/stash.c
Modified: src/stash.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -88,7 +88,7 @@
#define TYPE_COMBO_BOX_ENTRY get_combo_box_entry_type()
static GType get_combo_box_entry_type(void)
{
- static volatile gsize type = 0;
+ static gsize type = 0;
if (g_once_init_enter(&type))
{
GType g_type = g_type_register_static_simple(GTK_TYPE_COMBO_BOX, "dummy-combo-box-entry",
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list