mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-02 16:16:19 +08:00
unused variables warnings (#547)
This commit is contained in:
@@ -47,6 +47,8 @@ struct OneOf {
|
|||||||
if constexpr (sizeof...(Tail) == 0) {
|
if constexpr (sizeof...(Tail) == 0) {
|
||||||
if (_errors.size() == sizeof...(Cs)) {
|
if (_errors.size() == sizeof...(Cs)) {
|
||||||
return _value;
|
return _value;
|
||||||
|
// The AI suggests return std::forward<decltype(_result)>(_result);
|
||||||
|
// is it correct in this context?
|
||||||
}
|
}
|
||||||
return error(make_error_message(_errors));
|
return error(make_error_message(_errors));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ struct FieldVariantParser {
|
|||||||
|
|
||||||
static schema::Type to_schema(
|
static schema::Type to_schema(
|
||||||
std::map<std::string, schema::Type>* _definitions,
|
std::map<std::string, schema::Type>* _definitions,
|
||||||
std::vector<schema::Type> _types = {}) {
|
[[maybe_unused]] std::vector<schema::Type> _types = {}) {
|
||||||
using VariantType = rfl::Variant<NamedTuple<FieldTypes>...>;
|
using VariantType = rfl::Variant<NamedTuple<FieldTypes>...>;
|
||||||
return Parser<R, W, VariantType, ProcessorsType>::to_schema(_definitions);
|
return Parser<R, W, VariantType, ProcessorsType>::to_schema(_definitions);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ struct Parser<R, W, Bytestring, ProcessorsType> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static schema::Type to_schema(
|
static schema::Type to_schema(
|
||||||
std::map<std::string, schema::Type>* _definitions) {
|
[[maybe_unused]] std::map<std::string, schema::Type>* _definitions) {
|
||||||
return schema::Type{schema::Type::Bytestring{}};
|
return schema::Type{schema::Type::Bytestring{}};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ struct Parser<R, W, Vectorstring, ProcessorsType> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static schema::Type to_schema(
|
static schema::Type to_schema(
|
||||||
std::map<std::string, schema::Type>* _definitions) {
|
[[maybe_unused]] std::map<std::string, schema::Type>* _definitions) {
|
||||||
return schema::Type{schema::Type::Vectorstring{}};
|
return schema::Type{schema::Type::Vectorstring{}};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user