configure: re-enable '-Wunused-parameter'
[babeltrace.git] / src / plugins / ctf / common / metadata / ast.hpp
index 7ac2618d04867ba0d1ce1ebd0601f3cd53fa6356..037a1e6a0d9755bb66c0c37db1c7ecab2ebc2190 100644 (file)
@@ -414,8 +414,15 @@ error:
     return g_string_free(str, TRUE);
 }
 
-static inline int ctf_ast_get_unary_uuid(struct bt_list_head *head, bt_uuid_t uuid, int log_level,
-                                         bt_self_component *self_comp)
+#ifndef BT_COMP_LOG_CUR_LVL
+#define BT_AST_LOG_LEVEL_UNUSED_ATTR __attribute__((unused))
+#else
+#define BT_AST_LOG_LEVEL_UNUSED_ATTR
+#endif
+
+static inline int ctf_ast_get_unary_uuid(struct bt_list_head *head, bt_uuid_t uuid,
+        int log_level BT_AST_LOG_LEVEL_UNUSED_ATTR,
+        bt_self_component *self_comp BT_AST_LOG_LEVEL_UNUSED_ATTR)
 {
     int i = 0;
     int ret = 0;
This page took 0.023525 seconds and 4 git commands to generate.