mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 03:32:12 +01:00
gi[callable|type]info.c: Avoid MSVC C4098 warnings
We attempted to return a value in void-return-type functions in both gicallableinfo.c and gitypeinfo.c, so avoid that since that will trigger a C4098 warning on Visual Studio, which is considered an error if we are building against an installed version of GLib 2.68.x or later. This will fix builds against GLib-2.68.x and later on Visual Studio.
This commit is contained in:
parent
3556c864ed
commit
a068c6c303
@ -574,7 +574,7 @@ gi_type_info_extract_ffi_return_value (GITypeInfo *return_info,
|
|||||||
g_base_info_unref (interface_info);
|
g_base_info_unref (interface_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
return gi_type_tag_extract_ffi_return_value (return_tag, interface_type,
|
gi_type_tag_extract_ffi_return_value (return_tag, interface_type,
|
||||||
ffi_value, arg);
|
ffi_value, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -470,7 +470,7 @@ g_type_info_argument_from_hash_pointer (GITypeInfo *info,
|
|||||||
GIArgument *arg)
|
GIArgument *arg)
|
||||||
{
|
{
|
||||||
GITypeTag storage_type = g_type_info_get_storage_type (info);
|
GITypeTag storage_type = g_type_info_get_storage_type (info);
|
||||||
return gi_type_tag_argument_from_hash_pointer (storage_type, hash_pointer,
|
gi_type_tag_argument_from_hash_pointer (storage_type, hash_pointer,
|
||||||
arg);
|
arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user