mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +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,8 +574,8 @@ gi_type_info_extract_ffi_return_value (GITypeInfo *return_info,
|
||||
g_base_info_unref (interface_info);
|
||||
}
|
||||
|
||||
return gi_type_tag_extract_ffi_return_value (return_tag, interface_type,
|
||||
ffi_value, arg);
|
||||
gi_type_tag_extract_ffi_return_value (return_tag, interface_type,
|
||||
ffi_value, arg);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -470,8 +470,8 @@ g_type_info_argument_from_hash_pointer (GITypeInfo *info,
|
||||
GIArgument *arg)
|
||||
{
|
||||
GITypeTag storage_type = g_type_info_get_storage_type (info);
|
||||
return gi_type_tag_argument_from_hash_pointer (storage_type, hash_pointer,
|
||||
arg);
|
||||
gi_type_tag_argument_from_hash_pointer (storage_type, hash_pointer,
|
||||
arg);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user