summaryrefslogtreecommitdiffstats
path: root/external/mdds/remove-unused-parameters.patch.1
blob: ebfc94fbf107d1c65b5e5b3a7236763904a03cb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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