From ab774d6e8b3a4b63813b843ac01701b5449c57d6 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 18 Oct 2022 15:12:31 +0100 Subject: [PATCH] gbinding: Explicitly ignore return values from g_param_value_validate() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Coverity CID: #1498116, #1498114 --- gobject/gbinding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gobject/gbinding.c b/gobject/gbinding.c index 54dd0c253..204dc44db 100644 --- a/gobject/gbinding.c +++ b/gobject/gbinding.c @@ -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;