1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-05-31 09:50:05 +02:00

Merge branch 'backport-4398-refstring-disable-assert-fix-glib-2-82' into 'glib-2-82'

Backport  “grefstring: Mark a variable as potentially unused” to glib-2-82

See merge request 
This commit is contained in:
Emmanuele Bassi 2024-11-26 23:45:02 +00:00
commit 339e06125e

@ -279,7 +279,9 @@ retry:
/* If the string was not given out again in the meantime we're done */ /* If the string was not given out again in the meantime we're done */
if (g_atomic_int_dec_and_test (&impl->ref_count)) if (g_atomic_int_dec_and_test (&impl->ref_count))
{ {
gboolean removed = g_hash_table_remove (interned_ref_strings, str); gboolean removed G_GNUC_UNUSED /* when compiling with G_DISABLE_ASSERT */;
removed = g_hash_table_remove (interned_ref_strings, str);
g_assert (removed); g_assert (removed);
if (g_hash_table_size (interned_ref_strings) == 0) if (g_hash_table_size (interned_ref_strings) == 0)