mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01:00
Merge branch 'gtask-bitfields-fix' into 'main'
gtask: Use unsigned bit-field struct values to avoid warnings See merge request GNOME/glib!2979
This commit is contained in:
commit
4b6cc2d87b
22
gio/gtask.c
22
gio/gtask.c
@ -573,21 +573,21 @@ struct _GTask {
|
||||
gboolean thread_cancelled;
|
||||
|
||||
/* Protected by the lock when task is threaded: */
|
||||
gboolean thread_complete : 1;
|
||||
gboolean return_on_cancel : 1;
|
||||
gboolean : 0;
|
||||
guint thread_complete : 1;
|
||||
guint return_on_cancel : 1;
|
||||
guint : 0;
|
||||
|
||||
/* Unprotected, but written to when task runs in thread: */
|
||||
gboolean completed : 1;
|
||||
gboolean had_error : 1;
|
||||
gboolean result_set : 1;
|
||||
gboolean ever_returned : 1;
|
||||
gboolean : 0;
|
||||
guint completed : 1;
|
||||
guint had_error : 1;
|
||||
guint result_set : 1;
|
||||
guint ever_returned : 1;
|
||||
guint : 0;
|
||||
|
||||
/* Read-only once task runs in thread: */
|
||||
gboolean check_cancellable : 1;
|
||||
gboolean synchronous : 1;
|
||||
gboolean blocking_other_task : 1;
|
||||
guint check_cancellable : 1;
|
||||
guint synchronous : 1;
|
||||
guint blocking_other_task : 1;
|
||||
|
||||
GError *error;
|
||||
union {
|
||||
|
Loading…
x
Reference in New Issue
Block a user