From: Michael Jeanson Date: Tue, 29 Aug 2017 16:17:36 +0000 (-0400) Subject: Fix: silence unused warning in native_bt X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=d080d694e1fb07387d3302c360d0ad30bfce483e;p=deliverable%2Fbabeltrace.git Fix: silence unused warning in native_bt Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/bindings/python/bt2/bt2/native_btcomponentclass.i b/bindings/python/bt2/bt2/native_btcomponentclass.i index 195ca3819..da25e3762 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);