Do not use bool as a field name

C99 aliases `bool` to `_Bool`, and C23 introduces `bool` as a reserved
keyword. Let's avoid using `bool` as a field name.
This commit is contained in:
Emmanuele Bassi 2024-04-11 14:40:21 +01:00
parent 204a76669b
commit 9e320e1c43

View File

@ -56,7 +56,7 @@ typedef struct
gpointer arg_data;
union
{
gboolean bool;
gboolean boolean;
gint integer;
gchar *str;
gchar **array;
@ -1585,7 +1585,7 @@ free_changes_list (GOptionContext *context,
switch (change->arg_type)
{
case G_OPTION_ARG_NONE:
*(gboolean *)change->arg_data = change->prev.bool;
*(gboolean *)change->arg_data = change->prev.boolean;
break;
case G_OPTION_ARG_INT:
*(gint *)change->arg_data = change->prev.integer;