[glib: 2/3] gbinding: Explicitly ignore return values from g_param_value_validate()
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] gbinding: Explicitly ignore return values from g_param_value_validate()
- Date: Tue, 18 Oct 2022 15:03:07 +0000 (UTC)
commit ab774d6e8b3a4b63813b843ac01701b5449c57d6
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Oct 18 15:12:31 2022 +0100
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
gobject/gbinding.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gobject/gbinding.c b/gobject/gbinding.c
index 54dd0c2534..204dc44db7 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]