summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2022-10-19 11:32:25 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2022-10-19 11:32:25 +0000
commit4b6cc2d87bc788eff3edca55c1c6e05a9d97d33d (patch)
tree0837ecc1e2285525d47622be40bda74b3e8ee680
parent08cb200aec399b38f0cd825340a71fe6caadfb1b (diff)
parent4398d140c7ca721d710e35f7a2725b5f8375fd90 (diff)
downloadglib-4b6cc2d87bc788eff3edca55c1c6e05a9d97d33d.tar.gz
Merge branch 'gtask-bitfields-fix' into 'main'
gtask: Use unsigned bit-field struct values to avoid warnings See merge request GNOME/glib!2979
-rw-r--r--gio/gtask.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gio/gtask.c b/gio/gtask.c
index e8c2ef282..5e2a20d64 100644
--- a/gio/gtask.c
+++ b/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 {