Skip to content

Commit

Permalink
get rid of some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
benedekkupper committed Aug 2, 2024
1 parent d292ee4 commit 54c07ed
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
25 changes: 14 additions & 11 deletions hid-rp/hid/rdf/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ class parser
/// before this method is called)
/// @return CONTINUE to continue the parsing until the next main item,
/// or BREAK to terminate it early
constexpr virtual control parse_collection_begin(main::collection_type collection,
const global_item_store& global_state,
const items_view_type& main_section,
unsigned tlc_number)
constexpr virtual control
parse_collection_begin([[maybe_unused]] main::collection_type collection,
[[maybe_unused]] const global_item_store& global_state,
[[maybe_unused]] const items_view_type& main_section,
[[maybe_unused]] unsigned tlc_number)
{
return control::CONTINUE;
}
Expand All @@ -144,9 +145,10 @@ class parser
/// @param tlc_number: the Top Level Collection index, where this item is found
/// @return CONTINUE to continue the parsing until the next main item,
/// or BREAK to terminate it early
constexpr virtual control parse_collection_end(const global_item_store& global_state,
const items_view_type& main_section,
unsigned tlc_number)
constexpr virtual control
parse_collection_end([[maybe_unused]] const global_item_store& global_state,
[[maybe_unused]] const items_view_type& main_section,
[[maybe_unused]] unsigned tlc_number)
{
return control::CONTINUE;
}
Expand All @@ -160,10 +162,11 @@ class parser
/// @param tlc_number: the Top Level Collection index, where this item is found
/// @return CONTINUE to continue the parsing until the next main item,
/// or BREAK to terminate it early
constexpr virtual control parse_report_data_field(const item_type& main_item,
const global_item_store& global_state,
const items_view_type& main_section,
unsigned tlc_number)
constexpr virtual control
parse_report_data_field([[maybe_unused]] const item_type& main_item,
[[maybe_unused]] const global_item_store& global_state,
[[maybe_unused]] const items_view_type& main_section,
[[maybe_unused]] unsigned tlc_number)
{
return control::CONTINUE;
}
Expand Down
7 changes: 3 additions & 4 deletions hid-rp/hid/report_protocol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,9 @@ struct report_protocol_properties
}

private:
constexpr control parse_report_data_field(const item_type& main_item,
const rdf::global_item_store& global_state,
const items_view_type& main_section,
unsigned tlc_count) override
constexpr control parse_report_data_field(
const item_type& main_item, const rdf::global_item_store& global_state,
[[maybe_unused]] const items_view_type& main_section, unsigned tlc_count) override
{
using namespace hid::rdf;
report::type rtype = main::tag_to_report_type(main_item.main_tag());
Expand Down
1 change: 1 addition & 0 deletions hid-rp/sized_unsigned.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#ifndef __SIZED_UNSIGNED_HPP_
#define __SIZED_UNSIGNED_HPP_

#include <cstdint>
#include <type_traits>

/// @brief Lookup unsigned integer of matching size
Expand Down

0 comments on commit 54c07ed

Please sign in to comment.