build: Fix MSVC warning about casting

enums and uints might have a different size, so
pointers to enums and poiters to uints don't match.
This commit is contained in:
Benjamin Otte 2024-10-21 06:07:46 +02:00
parent 9e38c628f2
commit 225acbb12b
3 changed files with 10 additions and 6 deletions

View File

@ -119,7 +119,8 @@ gtk_application_accels_set_accels_for_action (GtkApplicationAccels *accels,
for (i = 0; accelerators[i]; i++)
{
GtkShortcutTrigger *new_trigger;
guint key, modifier;
guint key;
GdkModifierType modifier;
if (!gtk_accelerator_parse (accelerators[i], &key, &modifier))
{
@ -267,7 +268,8 @@ gtk_application_accels_get_actions_for_accel (GtkApplicationAccels *accels,
const char *accel)
{
GPtrArray *result;
guint key, modifiers;
guint key;
GdkModifierType modifiers;
guint i;
if (!gtk_accelerator_parse (accel, &key, &modifiers))

View File

@ -913,11 +913,13 @@ parse_property (ParserData *data,
if (bind_flags_str)
{
if (!_gtk_builder_flags_from_string (G_TYPE_BINDING_FLAGS, bind_flags_str, &bind_flags, error))
guint flags;
if (!_gtk_builder_flags_from_string (G_TYPE_BINDING_FLAGS, bind_flags_str, &flags, error))
{
_gtk_builder_prefix_error (data->builder, &data->ctx, error);
return;
}
bind_flags = flags;
}
gtk_buildable_parse_context_get_position (&data->ctx, &line, &col);

View File

@ -828,7 +828,7 @@ call_password_proxy_cb (GObject *source,
{
_GtkMountOperationHandler *proxy = _GTK_MOUNT_OPERATION_HANDLER (source);
GMountOperation *op = user_data;
GMountOperationResult result;
guint result;
GVariant *result_details;
GVariantIter iter;
const char *key;
@ -983,7 +983,7 @@ call_question_proxy_cb (GObject *source,
{
_GtkMountOperationHandler *proxy = _GTK_MOUNT_OPERATION_HANDLER (source);
GMountOperation *op = user_data;
GMountOperationResult result;
guint result;
GVariant *result_details;
GVariantIter iter;
const char *key;
@ -1566,7 +1566,7 @@ call_processes_proxy_cb (GObject *source,
{
_GtkMountOperationHandler *proxy = _GTK_MOUNT_OPERATION_HANDLER (source);
GMountOperation *op = user_data;
GMountOperationResult result;
guint result;
GVariant *result_details;
GVariantIter iter;
const char *key;