configure: re-enable '-Wunused-parameter'
[babeltrace.git] / src / ctf-writer / fields.h
index 3893f911eb0cbe5b6a0209ecf501d50c04236057..768be510e578c9584d0229fb18c0b3e9beaf9bb4 100644 (file)
@@ -795,8 +795,15 @@ 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);
 }
This page took 0.03121 seconds and 4 git commands to generate.