summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2022-10-18 15:12:31 +0100
committerPhilip Withnall <pwithnall@endlessos.org>2022-10-18 15:12:31 +0100
commitab774d6e8b3a4b63813b843ac01701b5449c57d6 (patch)
tree0eeac8d5a4c1b0813b3215a370b88c680f448d77
parent4fca3bba8f38627ee13b99b0b5093b73a2052e77 (diff)
downloadglib-ab774d6e8b3a4b63813b843ac01701b5449c57d6.tar.gz
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
-rw-r--r--gobject/gbinding.c4
1 files 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;