Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/rfl/OneOf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct OneOf {
static rfl::Result<T> validate_impl(const T& _value,
std::vector<Error> _errors) {
return Head::validate(_value)
.and_then([&](auto&& _result) -> rfl::Result<T> {
.and_then([&](auto&&) -> rfl::Result<T> {
if constexpr (sizeof...(Tail) == 0) {
if (_errors.size() == sizeof...(Cs)) {
return _value;
Expand Down
2 changes: 1 addition & 1 deletion include/rfl/parsing/FieldVariantParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct FieldVariantParser {

static schema::Type to_schema(
std::map<std::string, schema::Type>* _definitions,
[[maybe_unused]] std::vector<schema::Type> _types = {}) {
std::vector<schema::Type> = {}) {
using VariantType = rfl::Variant<NamedTuple<FieldTypes>...>;
return Parser<R, W, VariantType, ProcessorsType>::to_schema(_definitions);
}
Expand Down
3 changes: 1 addition & 2 deletions include/rfl/parsing/Parser_basic_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ struct Parser<R, W, T, ProcessorsType> {
}

/// Generates a schema for the underlying type.
static schema::Type to_schema(
std::map<std::string, schema::Type>* _definitions) {
static schema::Type to_schema(std::map<std::string, schema::Type>*) {
using U = std::remove_cvref_t<T>;
using Type = schema::Type;
if constexpr (std::is_same<U, bool>()) {
Expand Down
3 changes: 1 addition & 2 deletions include/rfl/parsing/Parser_bytestring.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ struct Parser<R, W, Bytestring, ProcessorsType> {
ParentType::add_value(_w, _b, _parent);
}

static schema::Type to_schema(
[[maybe_unused]] std::map<std::string, schema::Type>* _definitions) {
static schema::Type to_schema(std::map<std::string, schema::Type>*) {
return schema::Type{schema::Type::Bytestring{}};
}
};
Expand Down
3 changes: 1 addition & 2 deletions include/rfl/parsing/Parser_vectorstring.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ struct Parser<R, W, Vectorstring, ProcessorsType> {
ParentType::add_value(_w, _b, _parent);
}

static schema::Type to_schema(
[[maybe_unused]] std::map<std::string, schema::Type>* _definitions) {
static schema::Type to_schema(std::map<std::string, schema::Type>*) {
return schema::Type{schema::Type::Vectorstring{}};
}
};
Expand Down
Loading