Re-format with clang-format 16
[babeltrace.git] / src / ctf-writer / fields.h
index 3893f911eb0cbe5b6a0209ecf501d50c04236057..8a440206980df0998a4a0b50246a47c63c04c09f 100644 (file)
@@ -7,8 +7,8 @@
  * http://www.efficios.com/ctf
  */
 
-#ifndef BABELTRACE_CTF_WRITER_FIELDS_INTERNAL_H
-#define BABELTRACE_CTF_WRITER_FIELDS_INTERNAL_H
+#ifndef BABELTRACE_CTF_WRITER_FIELDS_H
+#define BABELTRACE_CTF_WRITER_FIELDS_H
 
 #include <glib.h>
 #include <inttypes.h>
@@ -18,7 +18,6 @@
 #include <string.h>
 
 #include <babeltrace2-ctf-writer/fields.h>
-#include <babeltrace2/types.h>
 
 #include "common/macros.h"
 #include "common/common.h"
@@ -795,10 +794,17 @@ int bt_ctf_field_structure_set_field_by_name(struct bt_ctf_field *field,
 struct bt_ctf_field *bt_ctf_field_enumeration_borrow_container(
                struct bt_ctf_field *field);
 
+#ifndef BT_DEV_MODE
+#define BT_FIELD_UNUSED_ATTR __attribute__((unused))
+#else
+#define BT_FIELD_UNUSED_ATTR
+#endif
+
 static inline
-bt_ctf_bool bt_ctf_field_is_set_recursive(struct bt_ctf_field *field)
+bt_ctf_bool bt_ctf_field_is_set_recursive(
+               struct bt_ctf_field *field BT_FIELD_UNUSED_ATTR)
 {
        return bt_ctf_field_common_is_set_recursive((void *) field);
 }
 
-#endif /* BABELTRACE_CTF_WRITER_FIELDS_INTERNAL_H */
+#endif /* BABELTRACE_CTF_WRITER_FIELDS_H */
This page took 0.023847 seconds and 4 git commands to generate.