mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
Revert "gcancellable: Mark assert-only variable as unused"
This reverts commit 6c679fb37a
.
Merge request !2765 has caused a thread safety regression in
`GCancellableSource` disposal. It landed too late in the cycle to fix
with any confidence before the 2.82 release, so the changes are being
reverted for the `glib-2-82` branch and 2.82.0 release.
This commit is not problematic, but is built entirely on top of the
problematic MR, so has to be reverted.
Fixes: #3448
Re-opens: #774, #2309, #2313
This commit is contained in:
parent
282545565a
commit
266e892a5e
@ -664,7 +664,7 @@ cancellable_source_cancelled (GCancellable *cancellable,
|
|||||||
{
|
{
|
||||||
GSource *source = user_data;
|
GSource *source = user_data;
|
||||||
GCancellableSource *cancellable_source = (GCancellableSource *) source;
|
GCancellableSource *cancellable_source = (GCancellableSource *) source;
|
||||||
gboolean callback_was_not_called G_GNUC_UNUSED;
|
gboolean callback_was_not_called;
|
||||||
|
|
||||||
g_source_ref (source);
|
g_source_ref (source);
|
||||||
g_source_set_ready_time (source, 0);
|
g_source_set_ready_time (source, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user