[lttng-dev] [PATCH babeltrace] Fix: silence unused warning in native_bt

Michael Jeanson mjeanson at efficios.com
Tue Aug 29 16:17:39 UTC 2017


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 --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);
-- 
2.7.4



More information about the lttng-dev mailing list