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-Tag: v2.0.0-pre5~200 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=1abcbdc0f72c6a9b4a467d1c71689fc6cd4a9654 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 8b7f75a6..a4b41ac2 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 */