From 2cf86e2068e546ad060b45612d1cdf28178a7ace Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Tue, 30 Apr 2019 11:36:43 -0400 Subject: [PATCH] Fix: unused-function warnings in lib/graph/iterator.c clang warnings: iterator.c:87:6: error: unused function '_set_self_comp_port_input_msg_iterator_state' [-Werror,-Wunused-function] void _set_self_comp_port_input_msg_iterator_state( ^ iterator.c:885:6: error: unused function '_set_iterator_state_after_seeking' [-Werror,-Wunused-function] void _set_iterator_state_after_seeking( ^ Signed-off-by: Francis Deslauriers Change-Id: Ia409f1dd696cdfed58de23aad926c4effdc26307 Reviewed-on: https://review.lttng.org/c/babeltrace/+/1034 Reviewed-by: Philippe Proulx --- lib/graph/iterator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/graph/iterator.c b/lib/graph/iterator.c index 1e02eb33..6a969826 100644 --- a/lib/graph/iterator.c +++ b/lib/graph/iterator.c @@ -83,6 +83,7 @@ (_iter)->state == BT_SELF_COMPONENT_PORT_INPUT_MESSAGE_ITERATOR_STATE_LAST_SEEKING_RETURNED_ERROR, \ "Message iterator is in the wrong state: %!+i", _iter) +BT_ASSERT_PRE_FUNC static inline void _set_self_comp_port_input_msg_iterator_state( struct bt_self_component_port_input_message_iterator *iterator, @@ -881,6 +882,7 @@ bt_bool bt_self_component_port_input_message_iterator_can_seek_beginning( return can; } +BT_ASSERT_PRE_FUNC static inline void _set_iterator_state_after_seeking( struct bt_self_component_port_input_message_iterator *iterator, -- 2.34.1