From: Francis Deslauriers Date: Tue, 18 Dec 2018 18:09:48 +0000 (-0500) Subject: Cleanup: bt_clock_snapshot_set_raw_value is now a static inline X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=edba9d2569b3e7c3929d5db2c136256ee4802730;p=deliverable%2Fbabeltrace.git Cleanup: bt_clock_snapshot_set_raw_value is now a static inline This fixes the following Clang warning: In file included from clock-class.c:32: ../../include/babeltrace/trace-ir/clock-snapshot-internal.h:98:1: error: attribute declaration must precede definition [-Werror,-Wignored-attributes] BT_HIDDEN ^ ../../include/babeltrace/babeltrace-internal.h:77:34: note: expanded from macro 'BT_HIDDEN' #define BT_HIDDEN __attribute__((visibility("hidden"))) ^ ../../include/babeltrace/trace-ir/clock-snapshot-internal.h:69:6: note: previous definition is here void bt_clock_snapshot_set_raw_value(struct bt_clock_snapshot *clock_snapshot, ^ 1 error generated. Signed-off-by: Francis Deslauriers --- diff --git a/include/babeltrace/trace-ir/clock-snapshot-internal.h b/include/babeltrace/trace-ir/clock-snapshot-internal.h index 8b7f75a60..a4b41ac29 100644 --- a/include/babeltrace/trace-ir/clock-snapshot-internal.h +++ b/include/babeltrace/trace-ir/clock-snapshot-internal.h @@ -95,8 +95,4 @@ struct bt_clock_snapshot *bt_clock_snapshot_create( BT_HIDDEN void bt_clock_snapshot_recycle(struct bt_clock_snapshot *clock_snapshot); -BT_HIDDEN -void bt_clock_snapshot_set_raw_value(struct bt_clock_snapshot *clock_snapshot, - uint64_t cycles); - #endif /* BABELTRACE_TRACE_IR_CLOCK_SNAPSHOT_INTERNAL_H */