summaryrefslogtreecommitdiff
path: root/external/mdds/remove-unused-parameters.patch.1
diff options
context:
space:
mode:
Diffstat (limited to 'external/mdds/remove-unused-parameters.patch.1')
-rw-r--r--external/mdds/remove-unused-parameters.patch.193
1 files changed, 93 insertions, 0 deletions
diff --git a/external/mdds/remove-unused-parameters.patch.1 b/external/mdds/remove-unused-parameters.patch.1
new file mode 100644
index 000000000000..ebfc94fbf107
--- /dev/null
+++ b/external/mdds/remove-unused-parameters.patch.1
@@ -0,0 +1,93 @@
+From 695e4c73fb55b1002237b0a22f13162c5c91aa68 Mon Sep 17 00:00:00 2001
+From: Kohei Yoshida <kohei.yoshida@gmail.com>
+Date: Mon, 1 Nov 2021 14:54:36 -0400
+Subject: [PATCH] Remove unused parameter warnings in public headers.
+
+---
+ include/mdds/multi_type_vector/util.hpp | 10 ++++++++--
+ include/mdds/trie_map_def.inl | 12 ++++++------
+ 2 files changed, 14 insertions(+), 8 deletions(-)
+
+diff --git a/include/mdds/multi_type_vector/util.hpp b/include/mdds/multi_type_vector/util.hpp
+index d21e302..a1cb1f9 100644
+--- a/include/mdds/multi_type_vector/util.hpp
++++ b/include/mdds/multi_type_vector/util.hpp
+@@ -51,7 +51,10 @@ struct empty_event_func
+ *
+ * @param block pointer to the acquired element block instance.
+ */
+- void element_block_acquired(const base_element_block* block) {}
++ void element_block_acquired(const base_element_block* block)
++ {
++ (void)block;
++ }
+
+ /**
+ * Callback function for element block release events. This gets called
+@@ -61,7 +64,10 @@ struct empty_event_func
+ *
+ * @param block pointer to the element block instance being released.
+ */
+- void element_block_released(const base_element_block* block) {}
++ void element_block_released(const base_element_block* block)
++ {
++ (void)block;
++ }
+ };
+
+ /**
+diff --git a/include/mdds/trie_map_def.inl b/include/mdds/trie_map_def.inl
+index 49e6de0..be18aec 100644
+--- a/include/mdds/trie_map_def.inl
++++ b/include/mdds/trie_map_def.inl
+@@ -1004,7 +1004,7 @@ packed_trie_map<_KeyTrait,_ValueT>::packed_trie_map(const packed_trie_map& other
+ {
+ packed_trie_map& m_parent;
+
+- void node(const uintptr_t* node_pos, key_unit_type c, size_t depth, size_t index_size)
++ void node(const uintptr_t* node_pos, key_unit_type /*c*/, size_t /*depth*/, size_t /*index_size*/)
+ {
+ uintptr_t value_ptr = *node_pos;
+
+@@ -1315,13 +1315,13 @@ void packed_trie_map<_KeyTrait,_ValueT>::save_state(std::ostream& os) const
+ }
+
+ /** first element in the buffer. */
+- void root_offset(size_t i, const uintptr_t& v) const
++ void root_offset(size_t /*i*/, const uintptr_t& v) const
+ {
+ write(v);
+ }
+
+ /** first element in each node section. */
+- void node_value(size_t i, const uintptr_t& v) const
++ void node_value(size_t /*i*/, const uintptr_t& v) const
+ {
+ const value_type* p = reinterpret_cast<const value_type*>(v);
+ if (p)
+@@ -1348,19 +1348,19 @@ void packed_trie_map<_KeyTrait,_ValueT>::save_state(std::ostream& os) const
+ * second element in each node section that stores the size of
+ * the child data sub-section.
+ */
+- void node_index_size(size_t i, const uintptr_t& v) const
++ void node_index_size(size_t /*i*/, const uintptr_t& v) const
+ {
+ write(v);
+ }
+
+ /** element that stores the key value for child node. */
+- void node_child_key(size_t i, const uintptr_t& v) const
++ void node_child_key(size_t /*i*/, const uintptr_t& v) const
+ {
+ write(v);
+ }
+
+ /** element that stores the relative offset of the child node. */
+- void node_child_offset(size_t i, const uintptr_t& v) const
++ void node_child_offset(size_t /*i*/, const uintptr_t& v) const
+ {
+ write(v);
+ }
+--
+2.25.1
+