Skip to content

Commit a0d7656

Browse files
committed
Fix some unused parameters warnings
1 parent e29d43e commit a0d7656

5 files changed

Lines changed: 5 additions & 8 deletions

File tree

include/rfl/OneOf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct OneOf {
4343
static rfl::Result<T> validate_impl(const T& _value,
4444
std::vector<Error> _errors) {
4545
return Head::validate(_value)
46-
.and_then([&](auto&& _result) -> rfl::Result<T> {
46+
.and_then([&](auto&&) -> rfl::Result<T> {
4747
if constexpr (sizeof...(Tail) == 0) {
4848
if (_errors.size() == sizeof...(Cs)) {
4949
return _value;

include/rfl/parsing/FieldVariantParser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct FieldVariantParser {
7373

7474
static schema::Type to_schema(
7575
std::map<std::string, schema::Type>* _definitions,
76-
[[maybe_unused]] std::vector<schema::Type> _types = {}) {
76+
std::vector<schema::Type> = {}) {
7777
using VariantType = rfl::Variant<NamedTuple<FieldTypes>...>;
7878
return Parser<R, W, VariantType, ProcessorsType>::to_schema(_definitions);
7979
}

include/rfl/parsing/Parser_basic_type.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ struct Parser<R, W, T, ProcessorsType> {
5454
}
5555

5656
/// Generates a schema for the underlying type.
57-
static schema::Type to_schema(
58-
std::map<std::string, schema::Type>* _definitions) {
57+
static schema::Type to_schema(std::map<std::string, schema::Type>*) {
5958
using U = std::remove_cvref_t<T>;
6059
using Type = schema::Type;
6160
if constexpr (std::is_same<U, bool>()) {

include/rfl/parsing/Parser_bytestring.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ struct Parser<R, W, Bytestring, ProcessorsType> {
2727
ParentType::add_value(_w, _b, _parent);
2828
}
2929

30-
static schema::Type to_schema(
31-
[[maybe_unused]] std::map<std::string, schema::Type>* _definitions) {
30+
static schema::Type to_schema(std::map<std::string, schema::Type>*) {
3231
return schema::Type{schema::Type::Bytestring{}};
3332
}
3433
};

include/rfl/parsing/Parser_vectorstring.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ struct Parser<R, W, Vectorstring, ProcessorsType> {
2727
ParentType::add_value(_w, _b, _parent);
2828
}
2929

30-
static schema::Type to_schema(
31-
[[maybe_unused]] std::map<std::string, schema::Type>* _definitions) {
30+
static schema::Type to_schema(std::map<std::string, schema::Type>*) {
3231
return schema::Type{schema::Type::Vectorstring{}};
3332
}
3433
};

0 commit comments

Comments
 (0)