diff mbox series

[babeltrace] Fix: silence unused warning in native_bt

Message ID 1504023459-15576-1-git-send-email-mjeanson@efficios.com
State Accepted, archived
Headers show
Series [babeltrace] Fix: silence unused warning in native_bt | expand

Commit Message

Michael Jeanson Aug. 29, 2017, 4:17 p.m. UTC
Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 bindings/python/bt2/bt2/native_btcomponentclass.i | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bindings/python/bt2/bt2/native_btcomponentclass.i b/bindings/python/bt2/bt2/native_btcomponentclass.i
index 195ca38..da25e37 100644
--- a/bindings/python/bt2/bt2/native_btcomponentclass.i
+++ b/bindings/python/bt2/bt2/native_btcomponentclass.i
@@ -816,7 +816,7 @@  static void bt_py3_cc_set_optional_iter_methods(struct bt_component_class *cc,
 		int (*set_notif_iter_init_method)(struct bt_component_class *, bt_component_class_notification_iterator_init_method),
 		int (*set_notif_iter_finalize_method)(struct bt_component_class *, bt_component_class_notification_iterator_finalize_method))
 {
-	int ret;
+	int ret __attribute__((unused));
 
 	ret = set_notif_iter_init_method(
 		cc, bt_py3_cc_notification_iterator_init);