gbinding: Explicitly ignore return values from g_param_value_validate()

They only indicate whether the value had to be modified to keep it
valid. That doesn’t matter when binding values.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Coverity CID: #1498116, #1498114
This commit is contained in:
Philip Withnall 2022-10-18 15:12:31 +01:00
parent 4fca3bba8f
commit ab774d6e8b

View File

@ -552,7 +552,7 @@ on_source_notify (GObject *source,
{
binding->is_frozen = TRUE;
g_param_value_validate (binding->target_pspec, &to_value);
(void) g_param_value_validate (binding->target_pspec, &to_value);
g_object_set_property (target, binding->target_pspec->name, &to_value);
binding->is_frozen = FALSE;
@ -620,7 +620,7 @@ on_target_notify (GObject *target,
{
binding->is_frozen = TRUE;
g_param_value_validate (binding->source_pspec, &to_value);
(void) g_param_value_validate (binding->source_pspec, &to_value);
g_object_set_property (source, binding->source_pspec->name, &to_value);
binding->is_frozen = FALSE;