Cleanup: bt_clock_snapshot_set_raw_value is now a static inline
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 18 Dec 2018 18:09:48 +0000 (13:09 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:37 +0000 (18:19 -0400)
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 <francis.deslauriers@efficios.com>
include/babeltrace/trace-ir/clock-snapshot-internal.h

index 8b7f75a601508ea19e21af861eb437106e0a724c..a4b41ac2980e124f6fa18dda7626b09d855af299 100644 (file)
@@ -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 */
This page took 0.026235 seconds and 4 git commands to generate.