};
static
-bt_bool bt_value_null_is_equal(const struct bt_value *object_a,
- const struct bt_value *object_b)
+bt_bool bt_value_null_is_equal(
+ const struct bt_value *object_a __attribute__((unused)),
+ const struct bt_value *object_b __attribute__((unused)))
{
/*
* Always BT_TRUE since bt_value_is_equal() already checks if both
};
static
-void bt_value_null_freeze(struct bt_value *object)
+void bt_value_null_freeze(struct bt_value *object __attribute__((unused)))
{
}
static inline
void set_integer_value(struct bt_value *integer_obj,
- enum bt_value_type expected_type, uint64_t uval,
+ uint64_t uval,
const char *api_func)
{
BT_ASSERT_PRE_DEV_VALUE_HOT_FROM_FUNC(api_func, integer_obj);
{
BT_ASSERT_PRE_VALUE_NON_NULL(integer_obj);
BT_ASSERT_PRE_VALUE_IS_UNSIGNED_INT(integer_obj);
- set_integer_value(integer_obj, BT_VALUE_TYPE_UNSIGNED_INTEGER, val,
- __func__);
+ set_integer_value(integer_obj, val, __func__);
BT_LOGT("Set unsigned integer value's raw value: "
"value-addr=%p, value=%" PRIu64, integer_obj, val);
}
{
BT_ASSERT_PRE_VALUE_NON_NULL(integer_obj);
BT_ASSERT_PRE_VALUE_IS_SIGNED_INT(integer_obj);
- set_integer_value(integer_obj, BT_VALUE_TYPE_SIGNED_INTEGER,
- (uint64_t) val, __func__);
+ set_integer_value(integer_obj, (uint64_t) val, __func__);
BT_LOGT("Set signed integer value's raw value: "
"value-addr=%p, value=%" PRId64, integer_obj, val);
}