[gtk+/gtk-3-16] inspector: Annotate a call whose return value we don't need
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-16] inspector: Annotate a call whose return value we don't need
- Date: Fri, 17 Jul 2015 20:12:51 +0000 (UTC)
commit 2c7974a69d2d924f1b0ee18efd338a39101762e7
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 17 15:55:18 2015 -0400
inspector: Annotate a call whose return value we don't need
The way this code is written, we know that there is an item in
the hash table and the iter_next call will give it to us, so
no need to check the return value. Annotate the call to tell
coverity.
gtk/inspector/gestures.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/gestures.c b/gtk/inspector/gestures.c
index e62d408..b6e87d9 100644
--- a/gtk/inspector/gestures.c
+++ b/gtk/inspector/gestures.c
@@ -218,7 +218,7 @@ gtk_inspector_gestures_set_object (GtkInspectorGestures *sl,
gpointer key, value;
GtkGesture *gesture;
g_hash_table_iter_init (&iter, hash);
- g_hash_table_iter_next (&iter, &key, &value);
+ (void)g_hash_table_iter_next (&iter, &key, &value);
gesture = key;
add_gesture_group (sl, object, gesture, hash);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]