unused variables warnings (#547)

This commit is contained in:
KostinPavel
2025-11-23 17:44:45 +01:00
committed by GitHub
parent 331a9794b1
commit 3971effa9d
4 changed files with 5 additions and 3 deletions
+2
View File
@@ -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 {
+1 -1
View File
@@ -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);
} }
+1 -1
View File
@@ -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{}};
} }
}; };
+1 -1
View File
@@ -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{}};
} }
}; };