* 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>
#include <string.h>
#include <babeltrace2-ctf-writer/fields.h>
-#include <babeltrace2/types.h>
#include "common/macros.h"
#include "common/common.h"
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 */