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:
Chun-wei Fan 2022-03-10 18:11:05 +08:00 committed by Christoph Reiter
parent 3556c864ed
commit a068c6c303
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
/**

View File

@ -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);
}
/**